This article explains the sample C# code with XPathNavigator to select an XML element from an XML file which is having a default namespace.Consider the sample XML file with namespace(xmlns) defined , See the console application sample given below which selects all the City Elements of the State which is having Name attribute value ‘Karnataka’.XPathNavigator […]
How To Select Required Number Of Nodes From Top or Bottom Using XPATH – C#,VB.NET
In this post, I am explaining how you can access only the specified number of required XML elements using the XPATH expression.The Same sample is given in both C# and VB.NET. Consider the same XML sample file which I have used for my other sample codes, Select Required Number of Nodes From Top or Bottom […]