DOMDocumentType
DOMElement::__construct
DOM
php 手册
|
脚本学堂
|
脚本编程
|
网站编程
|
系统管理
|
服务器配置
|
数据库管理
|
Php教程
|
python教程
|
正则表达式
|
批处理脚本
|
Centos教程
|
Linux基础教程
The DOMElement class
Class synopsis
DOMElement
DOMElement
extends
DOMNode
{
/* Properties */
readonly
public
bool
$schemaTypeInfo
;
readonly
public
string
$tagName
;
/* Methods */
__construct
(
string
$name
[,
string
$value
[,
string
$namespaceURI
]] )
string
getAttribute
(
string
$name
)
DOMAttr
getAttributeNode
(
string
$name
)
DOMAttr
getAttributeNodeNS
(
string
$namespaceURI
,
string
$localName
)
string
getAttributeNS
(
string
$namespaceURI
,
string
$localName
)
DOMNodeList
getElementsByTagName
(
string
$name
)
DOMNodeList
getElementsByTagNameNS
(
string
$namespaceURI
,
string
$localName
)
bool
hasAttribute
(
string
$name
)
bool
hasAttributeNS
(
string
$namespaceURI
,
string
$localName
)
bool
removeAttribute
(
string
$name
)
bool
removeAttributeNode
(
DOMAttr
$oldnode
)
bool
removeAttributeNS
(
string
$namespaceURI
,
string
$localName
)
DOMAttr
setAttribute
(
string
$name
,
string
$value
)
DOMAttr
setAttributeNode
(
DOMAttr
$attr
)
DOMAttr
setAttributeNodeNS
(
DOMAttr
$attr
)
void
setAttributeNS
(
string
$namespaceURI
,
string
$qualifiedName
,
string
$value
)
void
setIdAttribute
(
string
$name
,
bool
$isId
)
void
setIdAttributeNode
(
DOMAttr
$attr
,
bool
$isId
)
void
setIdAttributeNS
(
string
$namespaceURI
,
string
$localName
,
bool
$isId
)
/* Inherited methods */
DOMNode
DOMNode::appendChild
(
DOMNode
$newnode
)
DOMNode
DOMNode::cloneNode
([
bool
$deep
] )
bool
DOMNode::hasAttributes
(
void
)
bool
DOMNode::hasChildNodes
(
void
)
DOMNode
DOMNode::insertBefore
(
DOMNode
$newnode
[,
DOMNode
$refnode
] )
bool
DOMNode::isDefaultNamespace
(
string
$namespaceURI
)
bool
DOMNode::isSameNode
(
DOMNode
$node
)
bool
DOMNode::isSupported
(
string
$feature
,
string
$version
)
string
DOMNode::lookupNamespaceURI
(
string
$prefix
)
string
DOMNode::lookupPrefix
(
string
$namespaceURI
)
void
DOMNode::normalize
(
void
)
DOMNode
DOMNode::removeChild
(
DOMNode
$oldnode
)
DOMNode
DOMNode::replaceChild
(
DOMNode
$newnode
,
DOMNode
$oldnode
)
}
属性
schemaTypeInfo
Not implemented yet, always return
NULL
tagName
The element name
Table of Contents
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
DOMDocumentType
DOMElement::__construct
DOM
php 手册
|
脚本学堂
|
脚本编程
|
网站编程
|
系统管理
|
服务器配置
|
数据库管理
|
Php教程
|
python教程
|
正则表达式
|
批处理脚本
|
Centos教程
|
Linux基础教程