@XMLRelease
Syntax
@XMLRelease(XMLD);
Description
This @Function releases a previously created VSPECHXMLDOC (XMLD) handle.
The function releases all resources associated with the VSPECHXMLDOC (XMLD) handle.
After successful execution, the supplied XML document handle must no longer be used with other XML functions.
This also applies to handles for elements or nodes that were derived from this XML document.
VSPECHXMLDOC XMLD:
Handle of the XML document structure to be released.
XMLD must contain a valid VSPECHXMLDOC (XMLD) handle that references an XML document structure.
If an error occurs, the @Function returns @ERROR; otherwise, it returns TRUE.
Example: @XMLRelease(XMLD);
XML := "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
"<customer>" +
" <name>Example GmbH</name>" +
" <city>Berlin</city>" +
"</customer>";
hXMLD := @XMLParse(XML);
hXMLRoot := @XMLGetRoot(hXMLD);
@XMLRelease(hXMLD);
The example reads an XML document, retrieves its root element "<customer>", and then releases the XML structure.
Note : This text was machine-translated and may contain inaccuracies.
