Swanson, Brion wrote:
I just ran sax.Counter (Xerces 2.2.0) with the following input file:

<root>
<temp>
<root/>
</temp>
</root>

It worked completely fine and did not throw a SAXParseException.  Is this a
well-formed document?  I would think not based on the W3C definition:

 [Definition: There is exactly one element, called the root, or document
element, no part of which appears in the content of any other element.]

Your sample document *does* only have a single root element. However, other elements can appear in the document with the same *name* as the root element's.

--
Andy Clark * [EMAIL PROTECTED]


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



Reply via email to