> output.print(doc); > output.close(); > > How can I get rid of that line in the square brackets? There is no print(Document) method on XMLOutputter. I don't know where you got that, perhaps you added it, but it's printing the toString() value of the document which gives you the square bracked debug version. -jh-