The DOMElement class
(PHP 5, PHP 7, PHP 8)
类摘要
DOMElement
extends
DOMNode
{
/* 属性 */
/* 继承的属性 */
/* 方法 */
public getAttributeNodeNS
( string|null
$namespace
, string $localName
) : DOMAttr|DOMNamespaceNode|null/* 继承的方法 */
public DOMNode::C14N
( bool
$exclusive
= false
, bool $withComments
= false
, array|null $xpath
= null
, array|null $nsPrefixes
= null
) : string|false
public DOMNode::C14NFile
( string
}$uri
, bool $exclusive
= false
, bool $withComments
= false
, array|null $xpath
= null
, array|null $nsPrefixes
= null
) : int|false属性
- schemaTypeInfo
-
Not implemented yet, always return
null
- tagName
-
The element name
注释
注意:
此 DOM 扩展采用 UTF-8 编码。在 ISO-8859-1 编码下,使用 utf8_encode() 和 utf8_decode() 来处理,其它编码下使用 iconv 函数处理。
目录
- DOMElement::__construct — Creates a new DOMElement object
- DOMElement::getAttribute — Returns value of attribute
- DOMElement::getAttributeNode — Returns attribute node
- DOMElement::getAttributeNodeNS — Returns attribute node
- DOMElement::getAttributeNS — Returns value of attribute
- DOMElement::getElementsByTagName — Gets elements by tagname
- DOMElement::getElementsByTagNameNS — Get elements by namespaceURI and localName
- DOMElement::hasAttribute — Checks to see if attribute exists
- DOMElement::hasAttributeNS — Checks to see if attribute exists
- DOMElement::removeAttribute — Removes attribute
- DOMElement::removeAttributeNode — Removes attribute
- DOMElement::removeAttributeNS — Removes attribute
- DOMElement::setAttribute — Adds new attribute
- DOMElement::setAttributeNode — Adds new attribute node to element
- DOMElement::setAttributeNodeNS — Adds new attribute node to element
- DOMElement::setAttributeNS — Adds new attribute
- DOMElement::setIdAttribute — Declares the attribute specified by name to be of type ID
- DOMElement::setIdAttributeNode — Declares the attribute specified by node to be of type ID
- DOMElement::setIdAttributeNS — Declares the attribute specified by local name and namespace URI to be of type ID