[jdom-interest] XMLOutputter Questions
clewisf at us.ibm.com
Wed Apr 11 03:22:35 PDT 2001
I have an XML String that I need to change a couple of attribute values in.
So I build a JDOM Document and do that with ease. The problem is getting my
String back resembling the input String. I am using XMLOutputter as I
assume Document's getSerializedForm is not implemented. I have two
1. The input XML String may have it's DocType declaration commented
out. XMLOutputter will add a new DocType statement in this case. Is there
anyway to prevent this.
2. Newline characters in the prolog seem to be ignored, making
several prolog lines and the root tag one line. setNewlines fixes the
prolog but inserts extra unwanted newlines everywhere else.
thanks for any ideas
More information about the jdom-interest