Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

Using Xpath to find a user defined keyword

$
0
0

I am using the following code to find a user defined Keyword anywhere in the entire document . 

 XPathDocument dx = new XPathDocument(XMLURL);
 XPathNavigator nav = dx.CreateNavigator();

nav.Select("//"+keyword+"*")  // "keyword" is the user-define keyword

But it's not working, is there something wrong with above Xpath expression?


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>