Hi Neeraj, 

Thank you for the reply.

Neeraj Bajaj wrote:
> >it can't yet be set to "true" in Document.config and
> 
> DOM L3 says that when 'infoset' feature is true 'Keep in the document
> the information defined in the XML Information Set.'
> It also says that setting 'infoset' feature to true should also set
> 'well-formed' feature to true. I am not sure if this is the right
> behavior. XML Information Set spec states that "There is no requirement
> for an XML doucment to be valid in order to have an information set"
> This is especially true for synthetic infoset like creating DOM in memory.

This is true -- document does not have to be valid. However, "valid" [1]
and "well-formed" [2] are two different concepts.

The Infoset specification [3] clearly states the following:
"An XML document has an information set if it is well-formed".


[1] http://www.w3.org/TR/REC-xml#dt-valid
[2] http://www.w3.org/TR/REC-xml#dt-wellformed
[3] http://www.w3.org/TR/xml-infoset/#intro

Therefore, the DOM specification is correct in requiring the document to
be well-formed.

Thank you,
-- 
Elena Litani / IBM Toronto

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to