standard.lib.xml.xmlDocGetRootElement

xmlDocGetRootElement is available since version 1.0.

Prototype:

number xmlDocGetRootElement(number doc)

Parameters

doc
the XML document tree handle as returned by xmlParseMemory or { xmlParseFile}

Description:

Get the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...).

Return value:

Returns an XML Node handle for the root or null if failed.