Re: XML version number via DOM

On Thu, Mar 22, 2001 at 06:41:53AM -0800, Watson, Christopher wrote:
> Again, we're talking about implementation instead of specification, but as
> far as I know, the XMLDecl is not a child of any parent. The Document is
> only supposed to have one child, right? The document element.

There can be more than one child Node. There can be only 1 *Element* Node.
Document Nodes can also have Comment and ProcessingInstruction Nodes and
at most one DocumentType Node.

-- 
Martijn Pieters
| Software Engineer  mailto:mj@digicool.com
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
---------------------------------------------

Received on Thursday, 22 March 2001 09:56:06 UTC