s.krasniqi Posted May 22, 2017 Share Posted May 22, 2017 Hello everybody I need help concerning xPath. I want to select all book nodes for the books having title beginning with H*. This is the string so far, but it did not work xml.SelectNodes('//bookstore/book[starts-with(title, "H")'); This is the xmlFile. <okstore> Books.xml Link to comment Share on other sites More sharing options...
Bell Posted May 29, 2017 Share Posted May 29, 2017 Hi This should work Xml.SelectNodes('//bookstore/book[starts-with(descendant::title/child::text(),"H")]') Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now