Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I am able to save the xml file into my app server. I have save file using xml.Save("C:\\XMLFile\\" + fileName);

Now at the time of saving i want to show the xml file.

I dont know how to show the content in the browser.

Please help me.

Thanks in advance
Posted
Updated 29-Jun-11 1:38am
v3

I believe the following Link will help you a lot

http://msdn.microsoft.com/en-us/library/ekw4dh3f(v=vs.80).aspx[^]
 
Share this answer
 
Comments
[no name] 29-Jun-11 7:38am    
Nice Link. My 5 too.
You can show your xml file using Javascript

on ShowFile button click call following Javascript function

<script language="Javascript">
function OpenFile()
{
  window.showModalDialog('subDoc.html','dialogWidth:300px; dialogHeight:200px; center:yes');

  return false;
)
}
</script>
 
Share this answer
 
The simplest steps are:


  • Put you XML text inside pre tag;
  • Replace angular brackets with &lt; and &gt;;
  • Replace & with &amp;;
  • PROFIT!


The purpose of the steps show it to re-work XML in text showing XML in HTML, without tags. Some advanced step would be using syntax highlighting, pretty much as CodeProject does. For this purpose, add some text-inline tags (such as span, perhaps with the attribute class) and use CSS styles on the tags and classes.

—SA
 
Share this answer
 
v2

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