The DOMDocument classDOMDocument
&reftitle.intro;
Represents an entire HTML or XML document; serves as the root of the
document tree.
&reftitle.classsynopsis;
DOMDocumentDOMDocumentextendsDOMNode&Properties;readonlypublicstringactualEncodingreadonlypublicDOMConfigurationconfigreadonlypublicDOMDocumentTypedoctypereadonlypublicDOMElementdocumentElementpublicstringdocumentURIpublicstringencodingpublicboolformatOutputreadonlypublicDOMImplementationimplementationpublicboolpreserveWhiteSpace&true;publicboolrecoverpublicboolresolveExternalspublicboolstandalonepublicboolstrictErrorChecking&true;publicboolsubstituteEntitiespublicboolvalidateOnParse&false;publicstringversionreadonlypublicstringxmlEncodingpublicboolxmlStandalonepublicstringxmlVersion&InheritedProperties;&Methods;&InheritedMethods;
&reftitle.properties;
actualEncodingDeprecated. Actual encoding of the document,
is a readonly equivalent to
encoding.
configDeprecated. Configuration used when
DOMDocument::normalizeDocument is
invoked.
doctypeThe Document Type Declaration associated with this document.documentElement
This is a convenience attribute that allows direct access to the
child node that is the document element of the document.
documentURIThe location of the document or &null; if undefined.encoding
Encoding of the document, as specified by the XML declaration. This
attribute is not present in the final DOM Level 3 specification, but
is the only way of manipulating XML document encoding in this
implementation.
formatOutputNicely formats output with indentation and extra space.implementation
The DOMImplementation object that handles
this document.
preserveWhiteSpaceDo not remove redundant white space. Default to &true;.recoverProprietary. Enables recovery mode, i.e. trying
to parse non-well formed documents. This attribute is not part of
the DOM specification and is specific to libxml.
resolveExternals
Set it to &true; to load external entities from a doctype
declaration. This is useful for including character entities in
your XML document.
standaloneDeprecated. Whether or not the document is
standalone, as specified by the XML declaration, corresponds to
xmlStandalone.
strictErrorCheckingThrows DOMException on errors. Default to &true;.substituteEntitiesProprietary. Whether or not to substitute
entities. This attribute is not part of
the DOM specification and is specific to libxml.
validateOnParseLoads and validates against the DTD. Default to &false;.versionDeprecated. Version of XML, corresponds to
xmlVersion.
xmlEncoding
An attribute specifying, as part of the XML declaration, the
encoding of this document. This is &null; when unspecified or when it
is not known, such as when the Document was created in memory.
xmlStandalone
An attribute specifying, as part of the XML declaration, whether
this document is standalone. This is &false; when unspecified.
xmlVersion
An attribute specifying, as part of the XML declaration, the
version number of this document. If there is no declaration and if
this document supports the "XML" feature, the value is "1.0".
&reftitle.notes;
&dom.note.utf8;
&reftitle.seealso;
W3C specification for Document
&reference.dom.entities.domdocument;