You are viewing a single comment's thread. Return to all comments →
Correct Answer: puts doc.elements["collection/movie/description[contains(.,'bit')]/../@title"]
'..' in above xpath is used to reach to a movie then display title of that movie which contain 'bit' as the substring :).
Seems like cookies are disabled on this browser, please enable them to open this website
Querying XML Datastores with XPath - 6
You are viewing a single comment's thread. Return to all comments →
Correct Answer: puts doc.elements["collection/movie/description[contains(.,'bit')]/../@title"]
'..' in above xpath is used to reach to a movie then display title of that movie which contain 'bit' as the substring :).