XPath - Beispiele für C#:

 

Namespace:

oXDoc.LoadXml("<SendData><Data><XML ID='ltsData'><ltsData xmlns='http://www.mutschlechner.info/' /></XML></Data></SendData>");

//Instantiate an XmlNamespaceManager object.
System.Xml.XmlNamespaceManager xmlnsManager = new System.Xml.XmlNamespaceManager (oXDoc.NameTable);
//Add the namespaces to the XmlNamespaceManager.
xmlnsManager.AddNamespace("ns", "http://www.mutschlechner.info/");

XmlNode oN = oXDoc.SelectSingleNode("/SendData/Data/XML/ns:ltsData", xmlnsManager);