Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Display all node names and values Display all node names and valuesTo: NULL Date: 9/3/2007 9:32:00 AM
Hello,
Using Asp.Net, does anyone have some sample code that will simply display
all of the node names and values in an XML file? For example:
XML File:
<?xml verision="1.0" encoding="utf-8"?>
<root>
<node1>value 1</node1>
<list>
<node2>value 2</node2>
<node3>value 3</node3>
</list>
<node4>value 4</node4>
</root>
The output would display:
root
node1 = value 1
list
node2 = value 2
node3 = value 3
node4 = value4
The indentation is not really important, all I want is code to extract each
node name and if a value is present for that node, then show the value as
well.
I have not been able to find any sample code that does this simple operation
using ASP.Net XML classes.
Thanks in Advance!
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
