Skip to content


The closeDocument(xmlID) method closes the file that was opened with the openDocument(xmlFile) method.

This method clears the content of the document buffer and the document ID is released.

The syntax is:


where xmlID is the ID of the XML document returned after the loadFile(xmlDocumentName) function and the openDocument(xmlFile) method.