Try retrieving that as a Node and ask it  what its nodetype actually is.
Per the DOM spec, it could be a DocumentType node, or a comment, or a
processing instruction. If you really do always want the document's root
element, the easiest way to retrieve it is the getDocumentElement() method.



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

Reply via email to