📄 class.domdocument.html
字号:
<dd> <p class="para">The Document Type Declaration associated with this document.</p> </dd> </dt> <dt id="domdocument.props.documentelement"> <span class="term"><var class="varname">documentElement</var></span> <dd> <p class="para"> This is a convenience attribute that allows direct access to the child node that is the document element of the document. </p> </dd> </dt> <dt id="domdocument.props.documenturi"> <span class="term"><var class="varname">documentURI</var></span> <dd> <p class="para">The location of the document or <b><tt>NULL</tt></b> if undefined.</p> </dd> </dt> <dt id="domdocument.props.encoding"> <span class="term"><var class="varname">encoding</var></span> <dd> <p class="para"> 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. </p> </dd> </dt> <dt id="domdocument.props.formatoutput"> <span class="term"><var class="varname">formatOutput</var></span> <dd> <p class="para">Nicely formats output with indentation and extra space.</p> </dd> </dt> <dt id="domdocument.props.implementation"> <span class="term"><var class="varname">implementation</var></span> <dd> <p class="para"> The <a href="class.domimplementation.html" class="classname">DOMImplementation</a> object that handles this document. </p> </dd> </dt> <dt id="domdocument.props.preservewhitespace"> <span class="term"><var class="varname">preserveWhiteSpace</var></span> <dd> <p class="para">Do not remove redundant white space. Default to <b><tt>TRUE</tt></b>.</p> </dd> </dt> <dt id="domdocument.props.recover"> <span class="term"><var class="varname">recover</var></span> <dd> <p class="para"> <em class="emphasis">Proprietary</em>. 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. </p> </dd> </dt> <dt id="domdocument.props.resolveexternals"> <span class="term"><var class="varname">resolveExternals</var></span> <dd> <p class="para"> Set it to <b><tt>TRUE</tt></b> to load external entities from a doctype declaration. This is useful for including character entities in your XML document. </p> </dd> </dt> <dt id="domdocument.props.standalone"> <span class="term"><var class="varname">standalone</var></span> <dd> <p class="para"> <em class="emphasis">Deprecated</em>. Whether or not the document is standalone, as specified by the XML declaration, corresponds to <var class="varname">xmlStandalone</var>. </p> </dd> </dt> <dt id="domdocument.props.stricterrorchecking"> <span class="term"><var class="varname">strictErrorChecking</var></span> <dd> <p class="para">Throws <a href="class.domexception.html" class="classname">DOMException</a> on errors. Default to <b><tt>TRUE</tt></b>.</p> </dd> </dt> <dt id="domdocument.props.substituteentities"> <span class="term"><var class="varname">substituteEntities</var></span> <dd> <p class="para"> <em class="emphasis">Proprietary</em>. Whether or not to substitute entities. This attribute is not part of the DOM specification and is specific to libxml. </p> </dd> </dt> <dt id="domdocument.props.validateonparse"> <span class="term"><var class="varname">validateOnParse</var></span> <dd> <p class="para">Loads and validates against the DTD. Default to <b><tt>FALSE</tt></b>.</p> </dd> </dt> <dt id="domdocument.props.version"> <span class="term"><var class="varname">version</var></span> <dd> <p class="para"> <em class="emphasis">Deprecated</em>. Version of XML, corresponds to <var class="varname">xmlVersion</var> </p> </dd> </dt> <dt id="domdocument.props.xmlencoding"> <span class="term"><var class="varname">xmlEncoding</var></span> <dd> <p class="para"> An attribute specifying, as part of the XML declaration, the encoding of this document. This is <b><tt>NULL</tt></b> when unspecified or when it is not known, such as when the Document was created in memory. </p> </dd> </dt> <dt id="domdocument.props.xmlstandalone"> <span class="term"><var class="varname">xmlStandalone</var></span> <dd> <p class="para"> An attribute specifying, as part of the XML declaration, whether this document is standalone. This is <b><tt>FALSE</tt></b> when unspecified. </p> </dd> </dt> <dt id="domdocument.props.xmlversion"> <span class="term"><var class="varname">xmlVersion</var></span> <dd> <p class="para"> 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". </p> </dd> </dt> </dl> </div> <div class="section"> <h2 class="title">See Also</h2> <p class="para"> <ul class="simplelist"> <li class="member"><a href="http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-i-Document" class="link external">» W3C specification for Document</a></li> </ul> </p> </div> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="domdocument.construct.html">DOMDocument::__construct</a> 鈥
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -