Thursday, 26 February 2015

how to get root node with its attributes and without child nodes from XmlDocument using C#



I have an xml like:


<Customer id=""> <Name /> <Address /> </Customer>


I would like to select ONLY a root node header(not footer) with its attributes without its child nodes: <Customer id="">


No comments:

Post a Comment