CakeFest 2024: The Official CakePHP Conference

DOMElement::getAttributeNodeNS

(PHP 5, PHP 7, PHP 8)

DOMElement::getAttributeNodeNS 属性ノードを返す

説明

public DOMElement::getAttributeNodeNS(?string $namespace, string $localName): DOMAttr|DOMNameSpaceNode|null

現在のノードの、名前空間 namespaceにおける localName というローカル名の属性ノードを返します。

パラメータ

namespace

名前空間 URI。

localName

ローカル名。

戻り値

属性ノードを返します。 XML の名前空間宣言 (xmlnsxmlns:* 属性) については、 DOMAttr オブジェクトではなく、 DOMNameSpaceNode が返されることに注意してください。

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top