html php document,PHP: DOMDocument - Manual

actualEncoding

Deprecated. Actual encoding of the document,

is a readonly equivalent to

encoding.

config

Deprecated. Configuration used when

doctype

The 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.

documentURI

The 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.

formatOutput

Nicely formats output with indentation and extra space.

This has no effect if the document was loaded with

preserveWhitespace enabled.

implementation

The DOMImplementation object that handles

this document.

preserveWhiteSpace

Do not remove redundant white space. Default to true.

Setting this to false has the same effect as passing LIBXML_NOBLANKS

as option to

recover

Proprietary. 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.

standalone

Deprecated. Whether or not the document is

standalone, as specified by the XML declaration, corresponds to

xmlStandalone.

strictErrorChecking

Throws DOMException on errors. Default to true.

substituteEntities

Proprietary. Whether or not to substitute

entities. This attribute is not part of

the DOM specification and is specific to libxml.

Caution

Enabling entity substitution may facilitate XML External Entity (XXE) attacks.

validateOnParse

Loads and validates against the DTD. Default to false.

version

Deprecated. 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".

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值