Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml:lang not working in XPath expression

Status
Not open for further replies.

manitoba

Programmer
Jan 29, 2004
79
0
0
CA
Hi,

From C# I am trying to use an XPath expression with "xml:lang" in it but the compiler does not like it. Any idea how to do this in .NET?

Code:
XmlDocument doc = new XmlDocument();
doc.Load(@"C:\text.xml");
string test = doc.SelectSingleNode("/a/b[string(@xml:lang) = '']").InnerText();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top