Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

dom4j OutputFormat pretty print

807589Nov 21 2008 — edited Nov 22 2008
using
org.dom4j.io.OutputFormat format = OutputFormat.createPrettyPrint();
there doesn't seem an obvious way to preserve the structure of xml comments which appear on multi-lines.

Has anyone got any advise on how to pretty print and keep the comments nice and tidy as well. This seems like an oversight on dom4j's part.

thanks in advance
Hugh
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 20 2008
Added on Nov 21 2008
1 comment
789 views