PHP Manual » DOM

DOMElement クラス

(PHP 5, PHP 7)

クラス概要

DOMElementextendsDOMNode {
readonlypublicbool$schemaTypeInfo ;
readonlypublicstring$tagName ;
public__construct ( string$name [, string$value [, string$namespaceURI ]] )
publicstringgetAttribute ( string$name )
publicDOMAttrgetAttributeNode ( string$name )
publicDOMAttrgetAttributeNodeNS ( string$namespaceURI , string$localName )
publicstringgetAttributeNS ( string$namespaceURI , string$localName )
publicDOMNodeListgetElementsByTagName ( string$name )
publicDOMNodeListgetElementsByTagNameNS ( string$namespaceURI , string$localName )
publicboolhasAttribute ( string$name )
publicboolhasAttributeNS ( string$namespaceURI , string$localName )
publicboolremoveAttribute ( string$name )
publicboolremoveAttributeNode ( DOMAttr$oldnode )
publicboolremoveAttributeNS ( string$namespaceURI , string$localName )
publicDOMAttrsetAttribute ( string$name , string$value )
publicDOMAttrsetAttributeNode ( DOMAttr$attr )
publicDOMAttrsetAttributeNodeNS ( DOMAttr$attr )
publicvoidsetAttributeNS ( string$namespaceURI , string$qualifiedName , string$value )
publicvoidsetIdAttribute ( string$name , bool$isId )
publicvoidsetIdAttributeNode ( DOMAttr$attr , bool$isId )
publicvoidsetIdAttributeNS ( string$namespaceURI , string$localName , bool$isId )
publicDOMNodeDOMNode::appendChild ( DOMNode$newnode )
publicstringDOMNode::C14N ([ bool$exclusive [, bool$with_comments [, array$xpath [, array$ns_prefixes ]]]] )
publicintDOMNode::C14NFile ( string$uri [, bool$exclusive [, bool$with_comments [, array$xpath [, array$ns_prefixes ]]]] )
publicDOMNodeDOMNode::cloneNode ([ bool$deep ] )
publicintDOMNode::getLineNo ( void )
publicstringDOMNode::getNodePath ( void )
publicboolDOMNode::hasAttributes ( void )
publicboolDOMNode::hasChildNodes ( void )
publicDOMNodeDOMNode::insertBefore ( DOMNode$newnode [, DOMNode$refnode ] )
publicboolDOMNode::isDefaultNamespace ( string$namespaceURI )
publicboolDOMNode::isSameNode ( DOMNode$node )
publicboolDOMNode::isSupported ( string$feature , string$version )
publicstringDOMNode::lookupNamespaceURI ( string$prefix )
publicstringDOMNode::lookupPrefix ( string$namespaceURI )
publicvoidDOMNode::normalize ( void )
publicDOMNodeDOMNode::removeChild ( DOMNode$oldnode )
publicDOMNodeDOMNode::replaceChild ( DOMNode$newnode , DOMNode$oldnode )
}

プロパティ

schemaTypeInfo

未実装。常に NULL を返す。

tagName

要素名

注意

注意:

DOM 拡張モジュールは UTF-8 エンコーディングを使用します。ISO-8859-1 エンコーディングのテキストを扱うには utf8_encode()utf8_decode() を使用します。またその他のエンコーディングを扱うには Iconv を使用します。

目次

関連キーワード:  string,public,DOMNode,DOMElement,namespaceURI,DOMAttr,クラス,localName,ノード,construct

PHP Manual » DOM