Here Mudassar Ahmed Khan has explained with an example, how to select all Nodes (Elements) in XML without specifying (particular) Node Name (Tag Name) using XPath Query (Expression) with C# and VB.Net.
The XML file will be loaded into an XmlDocument and then using XPath Query (Expression), all the Nodes (Elements) in the XML will be selected.
↧