I am experiencing a problem when I parse an XML document that contains a CDATA section. The CDATA section in the DOM model does not contain the same content as the physical XML document. The CDATA section is the content of an Element.
The CDATA section in the physical XML document contains carriage returns and line feeds. However, after the file is parsed and I access the CDATA section (by means of Element.getText() - or - Element.getData()), the carriage return characters are gone and only the line feed characters are left. It appears that the parser is removing the carriage returns. It should be noted that I am using DOM4J to create the XML document that I am parsing. In other words, I use DOM4J to create the xml document, persist it to disk using XMLWriter; then another process comes along and uses DOM4J to parse and read the document. The OS is Win2K, JVM is Sun 1.4.0_01, DOM4J version is the latest nightly build as of 1:00 PM EST 9/17/2002. I doubt this is a DOM4J problem, but rather something I need to configure at a lower level. Any help will be greatly appreciated. Regards, Jeff ------------------------------------------------------- This SF.NET email is sponsored by: AMD - Your access to the experts on Hammer Technology! Open Source & Linux Developers, register now for the AMD Developer Symposium. Code: EX8664 http://www.developwithamd.com/developerlab _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user