Every time I serialize a DOM Tree it also writes out the comments from the DTD. How can I prevent this from happening.

I am using org.apache.xml.serialize.OutputFormat

setOmitComments omits all the comments even the ones that were present in the document.

Thanks

 



Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Reply via email to