How to display gridview data in xml format
Closed
riteshsg
Posts
2
Registration date
Monday 30 December 2013
Status
Member
Last seen
24 January 2014
-
24 Jan 2014 à 05:21
Blocked Profile - 24 Jan 2014 à 10:24
Blocked Profile - 24 Jan 2014 à 10:24
Related:
- Xml gridview
- Notepad xml plugin - 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