Hello David,

As far as I know, this functionality is already available ...

> 1. Apparently you can state that white space and cr/lf are part of an
> element and need to be preserved. So <Data><Font>hi here</Font></Data>
> is different from <Data>    <Font>hi there</Font>    </Data>. And in
> this case, there needs to be:
>
> a. A way to create these nodes initially with the spacing.
> b. A way to make sure that any XMLWriter type class preserves it

a. Please use the following property in the SAXReader.
<http://www.dom4j.org/apidocs/org/dom4j/io/SAXReader.html#setStripWhitespaceText(boolean)>

b. Make sure to set the correct settings on the OutputFormat for the writer, do not add extra newlines and do not trim the text.

Regards,
Edwin



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to