The java w3c libraries can do that job, I have used them for outputting simple snippets of HTML.
There was a good tutorial on it, one of the first results on google.
Sean
I love this place!
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35224
7
posted
0
The Xerces library has some pretty-fying serializers in the org.apache.xml.serialize package.