You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Daniel Burrell <da...@gmail.com> on 2008/08/08 04:47:30 UTC

Identify the XML declaration

Hi,

How can one identify the tag that starts off the xml document?

I know the root node can be found using doc->getDocumentElement
I know you can find the docType definition by iterating through searching
for a node that matches DOMDocumentType::DOCUMENT_TYPE_NODE
but how do i find the xml document <!xml version="1.0"...> node? better yet
where is it in the documentation?

Regards