xmlCloseDocument()
Closes the created XML document and destroys the occupied memory. After this call, the document ID is no longer valid.
Synopsis
int xmlCloseDocument(unsigned doc);
Parameters
| Parameter | Description |
|---|---|
| doc | ID of the document |
Return value
If an error occurs, -1 is returned.
0 means that the document has been closed.
Description
Closes the XML document (created via xmlNewDocument()) and destroys the occupied memory. After this call, the document ID is no longer valid.
#uses "CtrlXml"
main()
{
int cDoc;
unsigned Id;
Id = xmlNewDocument();
DebugN("Die Kennung:", Id);
cDoc = xmlCloseDocument(Id);
}
Assignment
Availability
CTRL. In every script where the "CtrlXml" extension (#uses "CtrlXml") is used.
