Hi Mike

From: Mike Skells
> What is the way to configure the parser the SAXReader to ignore whitespace

There doesn't appear to be a standard way of doing this via SAX and JAXP -
ignorable whitespace seems to be a DOM thing.

By default a SAX parser may call the ignorableWhitespace() method on
SAXContentHandler - which does nothing. So by default SAXReader should be
ignoring whitespace (provided the underlying XML parser can notice ignorable
whitespace).

AFAIK being able to notice whitespace or not requires a DTD or Schema aware
XML parser and for validation to be turned on. I think 'ignorable
whitespace' is whitespace between 'element content'. The only way a parser
can know when it is inside an 'element content' section of the document is
via a DTD or Schema.

James








_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to