The PBDOM_DOCUMENT class derives from PBDOM_OBJECT and represents an XML DOM document. The PBDOM_DOCUMENT methods allow access to the root element, processing instructions, and other document-level information.
In addition to the methods inherited from PBDOM_OBJECT, the PBDOM_DOCUMENT class has the following methods:
DetachRootElement, GetRootElement, HasRootElement, and SetRootElement to manipulate the root element of the PBDOM_DOCUMENT
GetDocType and SetDocType to get and set the DOCTYPE declaration of the XML document
NewDocument to build a new PBDOM_DOCUMENT from scratch
SaveDocument to save the content of the DOM tree in the PBDOM_DOCUMENT to a file