V
Vegard Beider
Hi.
I am new to both C# and XML parsing. I simply want to find out if a
node contains other nodes, and if it does i want to do something with
it. How can i find out in a simple way that in the example below both
<data> and <moredata> contains other nodes? I have been using both the
XPathNavigator and the XMLNodeReader without finding a cleaver way of
doing this...
XML example:
<data>
<elem>val<elem>
<elem>val<elem>
<moredata>
<elem>val<elem>
</moredata>
</data>
I am new to both C# and XML parsing. I simply want to find out if a
node contains other nodes, and if it does i want to do something with
it. How can i find out in a simple way that in the example below both
<data> and <moredata> contains other nodes? I have been using both the
XPathNavigator and the XMLNodeReader without finding a cleaver way of
doing this...
XML example:
<data>
<elem>val<elem>
<elem>val<elem>
<moredata>
<elem>val<elem>
</moredata>
</data>