Hi all, Attached is a patch (against 2.6.14) that adds a few additional functions the xmlReader, that I found useful: xmlTextReaderIsNamespaceDecl: determine whether the current attribute node is a namespace decl. xmlTextReaderConstEncoding: work out the encoding of the current doc. xmlTextReaderConstXmlVersion: the xml version of the current doc. xmlTextReaderStandalone: the standalone status of the current doc. The information for the last 3 is available via xmlTextReaderCurrentDoc, but by using the above functions one doesn't need to worry about freeing up the doc pointer when freeing the reader. cheers, Graham. -- Graham Bennett
Attachment:
diff.txt
Description: Text document