> I have an xml file where an element conatins some well formatted
> html. At the moment I comment out the html so as I can read the
> block of html in one go.
>> <site id="">
> <header><!-- well formatted html --></header>
> </site>
Sure, though not exactly as you might expect. You would build the Document,
get the header element. Then, if you could live with <header> as part of
the the string just use XMLOutputter and output the element to a
StringWriter. Otherwise, you will get the header content loop through it
and successively write each element to the same StringWriter.
At a high level (meaning I haven't tried this) this appears to be all you
would have to do.