Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello
i create a sitemap for my website in an xml file.i display content of xml file in aspx file.
but i want display xmlfile not in aspx.
when i use response.redirect("sitemap.xml"),it shows tree but i want to show only all content in sequential not in tree.

like this:
content of xmlfile:
XML
<t>
<t1 p="s1">

</t1>
<t2 p="s2">

</t2>
</t> 


but i want address bar=sitemap.xml and show like this:


p=s1p=s2 .....

any idea?any solution?
thank you.
Posted
Updated 18-May-14 19:05pm
v2
Comments
DamithSL 19-May-14 1:26am    
browser is the one decide how to display the XML file. why you can't read the xml file content and display it on aspx page?
NewWebDesigner 19-May-14 1:29am    
i can read xml in aspx.but when i view sitemap of other website those display in xml file,
so if i show this in aspx google can read sitemap?

1 solution

You can transform any XML into a more html presentable form with XSLT , see here : http://www.w3schools.com/xml/xml_xsl.asp[^]
 
Share this answer
 
Comments
NewWebDesigner 19-May-14 3:22am    
thank you.very good solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900