AH, still being turned away for a second time due to the poor documentation. It's all about parsing XML (which is dead easy) and creating/ouputing html content (which is rarely needed). Why couldn't you just have a simple example to fetch from a URL and output (echo not create HTML) a simple tag with class name.
That's what makes libraries like your important, parsing HTML. Not creating/parsing XML.