Declare namespaces within XPath expression
问题 My application needs to evaluate XPath expression against some XML data. Expression is provided by user at runtime. So, I cannot create XmlNamespaceManager to pass to XPathEvaluate because I don't know prefixes and namespaces at compile time. Is there any possibility to specify namespaces declaration within xpath expression? Answers to comments: XML data has one default namespace but there can be nested elements with any namespaces. User knows namespaces of the data he works with. User