Hi; Please correct me if I'm wrong but that is for the SAX reader. I'm at the oppisate end creating the file using a DOM.
??? - thanks - dave -----Original Message----- From: Edwin Dankert [mailto:[EMAIL PROTECTED] Sent: Monday, December 13, 2004 10:06 AM To: David Thielen Cc: [EMAIL PROTECTED] Subject: Re: [dom4j-user] Two suggested improvements for dom4j 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#setStripWhitespace Text(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