Hi all,
my XML looks like:
<root xmlns="tempuri.org">
<result xmlns="">
<date>2006-09-14</date>
<status>ok</status>
</result>
</root>
How do I query the status node using .NET 2.0 and XPath?
The only way I found is using local-name():
strState =
xmlDoc.SelectSingleNode("//*[local-name()='status']").InnerText;
Is there another way?
Thanks for your attention and time,
Stefan