Do you provide a DTD or Schema? Without one or the other, the parser has no way to know what whitespace is ignorable. See http://www.cafeconleche.org/books/xmljava/chapters/ch06s10.html for a discussion.
-----Original Message----- From: Eric Whitcombe [mailto:[EMAIL PROTECTED] Sent: Friday, July 25, 2008 10:46 AM To: [email protected] Subject: How to ignore LF I am using the XercesDOMParser in default configuration to read an XML file. Each <LF> (<CR+LF> converted to 0x0a) is put into a Text Node. Is there a way to discard these? I have tried calling setIncludeIgnorableWhitespace(false) before parsing. Thanks
