You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Po...@eth.net on 2001/05/01 00:31:58 UTC

Nondeliverable mail

I assume that your source files don't have a document type declaration.  If you had one, then Xerces would have been able to safely infer that whitespace in element content was ignorable.

However without a DTD, it is impossible to know for certain whether the whitespace is part of mixed content and is significant or part of element content and insignificant.  Microsoft's parsers guess
that whitespace between start and end tags is ignorable, but that isn't always that case (though it is most of the time).  However, the safer assumption is that the whitespace is significant.

If you don't want to provide a DTD but do want to suppress the production of the whitespace nodes, probably the best approach would be to provide a filter so that the SAX events that produce the
whitespace nodes don't ever get to the DOM builder.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org