HOME ASP PHP JAVASCRIPT C# Add Code   Turkish
 
     
  ASP Code Samples
PHP Code Samples
JavaScript Code Samples
C# Code Samples

C# Code Sample


C# Select XML Nodes by Name

To find nodes in an XML file you can use XPath expressions
 


The first slash means that the <Names> node must be a root node. SelectNodes method returns collection XmlNodeList which will contain the <Name> nodes. To get value of sub node <FirstName> you can simply index XmlNode with the node name: xmlNode["FirstName"].InnerText.

Added By : Administrator 


Back to C# Code Samples

 
  email : info@kodornekleri.com