Pier wrote
>Good, so I can have a document with only a big text node as a child
>node? That's what the spec says? I'm all for it. So, it's a bug in
>Xerces DOM.
This particular construct is forbidden by the DOM Level 1 spec, which lists
what node types are allowed as children for each of the other node types,
and what exception should be raised if an attempt is made to add one of the
forbidden types as a child node.
Documents can have as children
- An Element (maximum of one)
- PIs
- Comments
- Doucment Type
There are plenty of things that the DOM does not require to be checked,
this just isn't one of them.
-- Andy