Andrew Clover wrote: > A DocumentType node happens to have the same nodeName as the root > element, because when you say <!DOCTYPE blah []>, 'blah' must match the > root element. That's not always true; the name in the DOCTYPE only has to match the name of the root element if you are validating. (It's a Validity Constraint, not a matter of well-formedness.)