[xml] Parsing <?xml decl with xmlReader


The xmlReaderTypes enumeration contains this value:


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?



Print XML with Prince!

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