Persistence and the DOM
Information stored in an XML Document Object Model (DOM) can be serialized to an XML file, and information stored in an XML file can be opened into a DOM. XML files provide an easily exchanged, stored, and processed format for persisting information.
For scripting purposes, persistence of object models as files is handled by the following property and methods.
For Microsoft® Visual Basic® and C/C++ programmers, DOM persistence is handled by the following methods and objects/interfaces.
IPersistStreamInit
interface (see IXMLDOMDocument/DOMDocument)IPersistMoniker
interface (see IXMLDOMDocument/DOMDocument)IStream
interface (see IXMLDOMDocument/DOMDocument)