Hi,
I am trying to enumerate all the namespaces in a document using XPath. The following works in xmlspy, but not in .NET
//*/namespace-uri(.)
// Executing this in linqpad, I get the error below.
xml.CreateNavigator().Select("//*/namespace-uri(.)").Dump();
// the error below.
XPathException: ('//*/namespace-uri(.)' has an invalid token)
Thanks