RE: Why is DOMDocument derived from DOMNode ??

Prompt replies make me so happy :)

I tried returning the documentElement from getFirstChild but it didn't
work.... What worked was returning the first child of the documentElement.
Is this right?

Thanks a lot
Jaspreet

> -----Original Message-----
> From: Philippe Le Hegaret [mailto:plh@w3.org] 
> Sent: Friday, March 19, 2004 9:56 PM
 
> getFirstChild would return the document element, or a 
> processing instruction if any, etc. Have a look at section 
> 1.1.1 regarding the possible children of a Document node, or 
> appendix C.1.1 on how to map the Infoset to a Document node.
> 
> Philippe
> 
> 

Received on Saturday, 20 March 2004 04:07:34 UTC