[xml] Parsing <?xml decl with xmlReader




Hi,

The xmlReaderTypes enumeration contains this value:

    XML_READER_TYPE_XML_DECLARATION

However it seems that this value is never returned to the caller, and it
does not seem to be used anywhere in the libxml2 code.

Is it possible to tell whether or not an <?xml...?> declaration was parsed
when using the xmlReader?

(There is a function to get the XML version number from the current
document; if that returns NULL, does it indicate that there was no XML
declaration parsed?)

If not, is it possible to tell when using the SAX parser?

Thanks,

Michael

-- 
Print XML with Prince!
http://www.princexml.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]