xerces-c-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse Pelton" <...@PKC.com>
Subject RE: How to ignore LF
Date Fri, 25 Jul 2008 15:54:27 GMT
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

-----Original Message-----
From: Eric Whitcombe [mailto:ericw@DVC400.com] 
Sent: Friday, July 25, 2008 10:46 AM
To: c-users@xerces.apache.org
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. 


View raw message