standard.lib.xml.xmlTextReaderCurrentDoc

xmlTextReaderCurrentDoc is available since version 1.0.

Prototype:

number xmlTextReaderCurrentDoc(number reader)

Parameters

reader
the xmlTextReaderPtr used as returned by xmlReaderForMemory or xmlReaderForFile

Description:

Hacking interface allowing to get the xmlDocPtr correponding to the current document being accessed by the xmlTextReader. NOTE: as a result of this call, the reader will not destroy the associated XML document and calling xmlFreeDoc() on the result is needed once the reader parsing has finished.

Return value:

Returns the xmlDocPtr or null in case of error.