/Decoker, Lydie (Lydie)/:
Here is the code I use to parse and validate my XML files:
[...]
O.k. So we are just talking about whitespace in element content, unlike you've previously stated: "In fact I was not talking about the whitespace including in an element content".
As far as I'm aware the Xerces feature to ignore whitespace in element content [1] works only when DTD is supplied. Seems the JDK 5 bundled implementation makes that feature available when using XML Schema, too. See Prashant's reply on how you could alternatively achieve that whitespace filtering.
[1] http://xerces.apache.org/xerces2-j/features.html#dom.include-ignorable-whitespace
-- Stanimir --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]