XMLBeans doesn't have anything to do that. The idea behind "PrettyPrint" was
that if one doesn't care about the whitespace in the document, then he/she can
use .setSavePrettyPrint to obtain a document that is "pleasing to the eye". If
one cares about the whitespace, then they should *not* use pretty-print and
have their own algorithm to generate the XML document. XMLBeans will honor all
the whitespace in the infoset.
Radu
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2008 12:22 PM
To: [email protected]
Subject: line breaks and trailing spaces
Hi,
i need line breaks in a string that contains xml. When I use:
XmlOptions xmlOptions = new XmlOptions();
xmlOptions.setSavePrettyPrint();
myString=x.xmlText(xmlOptions);
it gives me the line break, but it also deletes trailing spaces. I need
both, the line break and the trailing spaces at the same time.
Any idea?
Alexandra