1) Its not impossible... but very tedious.
2) I havent tried QTextBrowser.
What I did was, I modified the Simple DOM Model example. In the model part, I made it return data in one line as a tag instead of multiple columns. Second, I set a Tree view on this, and on the tree view set a delegate to do xml highlighting (xml highlighter).
But this is not as efficient as IE displays it. I dont have the ending tags.</tagName>. And my spacing is not perfect.
Bookmarks