How to display gridview data in xml format
Closed
riteshsg
Posts
2
Registration date
Monday December 30, 2013
Status
Member
Last seen
January 24, 2014
-
Jan 24, 2014 at 05:21 AM
Blocked Profile - Jan 24, 2014 at 10:24 AM
Blocked Profile - Jan 24, 2014 at 10:24 AM
Related:
- Xml grid view notepad++
- Notepad++ xml plugin - Guide
- Notepad++ background color - Guide
- Smart view iphone - Guide
- How to open excel in notepad - Guide
- Safari view source - Guide
1 response
Hello,
Will you share what you have already attempted?
Here is asp code for my site:
strQRY="SELECT * FROM tblzipcodes;"
RC.open strQRY, CONN
if not RC.EOF then
%>
<?xml version="1.0" encoding="utf-8"?>
<cities>
<%
do while not RC.EOF%>
<city>
<county>
Lake
</county>
<name>
<%=RC(1)%>
</name>
<zip>
<%=RC(2)%>
</zip>
<description>
We are proud to serve the
<%=RC(1)%>
Area (<%=RC(2)%>).
</description>
<subdivision>
<name>
Contact us for a sub division listing!
</name>
</subdivision>
</city>
<%
RC.MOVENEXT
loop%>
</cities>
<%
end if
Will you share what you have already attempted?
Here is asp code for my site:
strQRY="SELECT * FROM tblzipcodes;"
RC.open strQRY, CONN
if not RC.EOF then
%>
<?xml version="1.0" encoding="utf-8"?>
<cities>
<%
do while not RC.EOF%>
<city>
<county>
Lake
</county>
<name>
<%=RC(1)%>
</name>
<zip>
<%=RC(2)%>
</zip>
<description>
We are proud to serve the
<%=RC(1)%>
Area (<%=RC(2)%>).
</description>
<subdivision>
<name>
Contact us for a sub division listing!
</name>
</subdivision>
</city>
<%
RC.MOVENEXT
loop%>
</cities>
<%
end if