We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
puts doc.elements["collection/movie[@title='Trigun']/@title"] this is for the example. This is for the code submission: puts doc.elements["collection/movie[contains(/description,'bit')]/@title"]
Cookie support is required to access HackerRank
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 →
puts doc.elements["collection/movie[@title='Trigun']/@title"] this is for the example. This is for the code submission: puts doc.elements["collection/movie[contains(/description,'bit')]/@title"]