[jdom-interest] BUG: XMLOutputter inserts extra empty lines
Andriy Palamarchuk
apa3a at yahoo.com
Mon Nov 26 07:11:45 PST 2001
> > When I read an XML file and save it back with
> > XMLOutputter the result document contains extra
empty
> > lines before some closing tags which are on
separate
> > lines.
> Have a look at
>SAXBuilder.setIgnoringElementContentWhitespace(boolean)
> If the white space in your document is just
formatting
> (ie not part of text that is really content) then
> this should be what you want.
Russell,
thank you for the advice.
I tried this approach but it does not seem to work.
Did you try to use this method?
Even if this would work the problem of white spaces
procesing in outputter remains. I still think it is a
bug and should be fixed. If the outputter trashes the
whitespaces while normalization it should do this with
all whitespaces.
For those who needs this fix now - one workaround for
this problem is to use stylesheet to reformat output.
I'm interested in fixing the JDom outputter.
Andriy Palamarchuk
__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
More information about the jdom-interest
mailing list