Skip to content

closeDocument(xmlID)

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:

XML.closeDocument(xmlID)

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