The DOMElement class
(PHP 5, PHP 7, PHP 8)
類摘要
/* 屬性 */
    
    
    
    
    
    
    
    /* 繼承的屬性 */
    
    /* 方法 */
    
    
    /* 繼承的方法 */
    
public DOMNode::C14N(
bool
bool
?array
?array
): string|false
bool
$exclusive = false,bool
$withComments = false,?array
$xpath = null,?array
$nsPrefixes = null): string|false
public DOMNode::C14NFile(
string
bool
bool
?array
?array
): int|false
   }string
$uri,bool
$exclusive = false,bool
$withComments = false,?array
$xpath = null,?array
$nsPrefixes = null): int|false
屬性
- childElementCount
- 
      The number of child elements. 
- firstElementChild
- 
      First child element or null.
- lastElementChild
- 
      Last child element or null.
- nextElementSibling
- 
      The next sibling element or null.
- previousElementSibling
- 
      The previous sibling element or null.
- schemaTypeInfo
- 
      Not implemented yet, always return null
- tagName
- 
      The element name 
更新日誌
| 版本 | 說明 | 
|---|---|
| 8.0.0 | The firstElementChild, lastElementChild, childElementCount, previousElementSibling, and nextElementSibling properties have been added. | 
| 8.0.0 | DOMElement implements DOMParentNode and DOMChildNode now. | 
註釋
注意:
此 DOM 擴充套件採用 UTF-8 編碼。使用 mb_convert_encoding()、UConverter::transcode() 或 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 or modifies existing 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