0
我想枚舉使用XPath的文檔中的所有名稱空間。 在XMLSpy的以下作品,但不是在.NETCreateNavigator(X-Path具有無效標記)
//*/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)
感謝