XPath is a very valuable tool, often used for querying XML databases. XPath queries (or close variants) are also used in the process of Web Scraping while retreiving data from structured XHTML-compliant web pages, specially those with tabulated data.
Assume that you have been provided the fragment of XML, shown below.
Your task is to write the XPath selector for picking up the name of the movie for which the description contains the substring "bit". Assume that there is exactly one such record.
The Ruby code for handling input, output and document construction has already been provided. You only need to fill up the required blanks as indicated in the template code provided.
This challenge is agnostic to language-specific knowledge and you do not require to know ruby - as only the XPath selector needs to be completed by you.
Your code will also be run against a hidden test case, which is similar in schema and format to the XML fragment shown above - only some of the values in the fields will be changed. This is to prevent the submission of hard-coded answers.