Use XPath to parse the elements.