Loading an XMLDocument Object

Figure 1. Loading an XMLDocument
load(XMLArchiveDocumentID key);

To load an XML document from the document archive, you should first create a default XMLDocument object. The load method takes one parameter which is the key to the archive document. The details returned include the template information that you saved with the document such as its version and locale, and the XML representation of the data in the document.

Once loaded, the XML document object can be treated like any other document object that was created, opened, had data added and was closed.