I am trying to figure out how to execute a QXmlQuery on data in a QString.

For example, say I want to get all of the <img> tags from a QTextEdit's toHtml() method using XQuery.

I figured using XQuery would be the least amount of code so I don't have to reinvent the parsing of the HTML that toHtml() returns.

So is there any way to get the QXmlQuery to operate on a QString instead of using XQuery's fn:doc() function on a file?

Thanks!