[jdom-interest] Formatting of files
Abhishek Srivastava
abhisheks at india.hp.com
Sat Aug 11 06:03:45 PDT 2001
Hello All,
I have a XML file, I build a JDOM tree out of it and then I save it back to
the file.
On saving back, I find that there are a lot of extra lines introduced in my
XML file.
I looked up the documentation of jdom and used the API
out.setTextNormalize(true);
Even after this, I still see some extra new lines coming into my document.
Can I rectify this ?
I am attaching the original.xml (this is how my file initially looked like)
distroted1.xml (this is the output if I do not use setTextNormalize)
distorted2.xml (this is the output if I use setTextNormalize).
Also attached is the program that I am using.
Any help would be greatly appreciated.
regards,
Abhishek.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: original.xml
Type: text/xml
Size: 1509 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20010811/af3fab58/original.xml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: distorted1.xml
Type: text/xml
Size: 1531 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20010811/af3fab58/distorted1.xml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: distorted2.xml
Type: text/xml
Size: 1510 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20010811/af3fab58/distorted2.xml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testJDom.java
Type: application/octet-stream
Size: 611 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20010811/af3fab58/testJDom.obj
More information about the jdom-interest
mailing list