Let's say I have some plain text in HTML-like format like this:
<div id="foo"><p id="bar">Some random text</p></div>
And I need to be able to run XPath on it to retrieve some inner element. How can I convert plain text to some kind of object which I could use XPath on?