> validated against a DTD or schema model
I have a slightly different view here. Ignorable whitespace are whitespaces
within "element content", which is defined in the scope of DTD, and has
nothing to do with schema.
In the XML infoset, each character has a property "element content
whitespace". A whitespace is marked "ignorable" when this property is true.
According to the description of this property, it's true if and only if the
instance was validated using a DTD. Schema validation doesn't affect this
property, so schema validation doesn't make any whitespace "ignorable".
Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]
Joseph
Kesselman/Watson/ To: [EMAIL PROTECTED]
[EMAIL PROTECTED] cc:
Subject: Re: Question on
Feature:
12/12/2002 05:16
http://apache.org/xml/features/dom/include-ignorable-whitespace
PM
Please respond to
xerces-j-user
Ignorable whitespace is whitespace contained within an element which has
been validated against a DTD or schema model which says that element will
contain only other elements.
If you haven't provided that declaration, and haven't parsed in validating
mode, XML is *required* to consider all whitespace potentially meaningful,
and it's up to your application to skip over it if it's irrelevant.
______________________________________
Joe Kesselman / IBM Research
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]