Results of 1 - 10 of about 23 for DOMAttr (0.001 sec.)
- DOMAttr::__construct — 新しい DOMAttr | PHP 8.3 13438
- DOMAttr::__construct (PHP 5, PHP 7, PHP 8) DOMAttr::__construct — 新しい DOMAttr オブジェクトを作成する 説明 public function DOMAttr::__construct ( string $name , string $value = "" ) 新しい DOMAttr オブジェクトを作成します。 このオブジェク
... ドを作成するには、 DOMDocument::createAttribute を使用します。 パラメータ name 属性のタグ名。 value 属性の値。 例 例1 新しい DOMAttr オブジェクトを作成する <?php $dom = new DOMDocument ( '1.0' , 'utf-8' ); $element = $dom -> appendChild (new DOMElement ( ... 'root' )); $attr = $element -> setAttributeNode (new DOMAttr ( 'attr' , 'attrvalue' )); echo $dom -> saveXML (); ?> 上の例の出力は以下となります。 <?xml version="1.0" encoding="iso-88 ...
-
https://man.mtool.work/php/8.3/domattr.construct.html
- DOMElement クラス | PHP 8.3 11411
- DOMElement クラス (PHP 5, PHP 7, PHP 8) クラス概要 class DOMElement extends DOMNode implements DOMParentNode , DOMChildNode { /* 継承した定数 */ public const int DOMNode::DOCUMENT_POSITION_DISCONNECTED = 0x1 ; public const int DOMNode::DOCU
... fiedName ): string public function getAttributeNames (): array public function getAttributeNode ( string $qualifiedName ): DOMAttr | DOMNameSpaceNode | false public function getAttributeNodeNS ( ? string $namespace , string $localName ): DOMAttr | DOMNa ... tion remove (): void public function removeAttribute ( string $qualifiedName ): bool public function removeAttributeNode ( DOMAttr $attr ): DOMAttr | false public function removeAttributeNS ( ? string $namespace , string $localName ): void public functi ... n replaceWith ( DOMNode | string ...$nodes ): void public function setAttribute ( string $qualifiedName , string $value ): DOMAttr | bool public function setAttributeNode ( DOMAttr $attr ): DOMAttr | null | false public function setAttributeNodeNS ( DOM ...
-
https://man.mtool.work/php/8.3/class.domelement.html
- DOMAttr クラス | PHP 8.3 10439
- DOMAttr クラス (PHP 5, PHP 7, PHP 8) はじめに DOMNode を継承します。 DOMAttr は、 DOMElement オブジェクトの属性を表します。 クラス概要 class DOMAttr extends DOMNode { /* 継承した定数 */ public const int DOMNode::DOCUMENT_POSITION_DISCONNECT
... エンティティの展開を避けるためには、 DOMElement::setAttribute() を代わりに使います。 参考 » W3C specification of Attr 目次 DOMAttr::__construct — 新しい DOMAttr オブジェクトを作成する DOMAttr::isId — 属性が定義済みの ID かどうかを調べる 他のマニュアルの ...
-
https://man.mtool.work/php/8.3/class.domattr.html
- DOMAttr::isId — 属性が定義済みの ID かどうかを調べる | PHP 8.3 10255
- DOMAttr::isId (PHP 5, PHP 7, PHP 8) DOMAttr::isId — 属性が定義済みの ID かどうかを調べる 説明 public function DOMAttr::isId (): bool この関数は、属性が定義済みの ID かどうかを調べます。 DOM 標準規格によると、DTD では ID 型の属性 ID が定義さ
... ラメータはありません。 戻り値 この属性が定義済みのIDであれば、 true を返します。 それ以外の場合、 false を返します。 例 例1 DOMAttr::isId() の例 <?php $doc = new DOMDocument ; // id を参照する前に、ドキュメントを検証しなければなりません $doc -> validateO ...
-
https://man.mtool.work/php/8.3/domattr.isid.html
- dom_import_simplexml — SimpleXMLElement | PHP 8.3 9484
- dom_import_simplexml (PHP 5, PHP 7, PHP 8) dom_import_simplexml — SimpleXMLElement オブジェクトから DOMAttr または DOMElement オブジェクトを取得する 説明 function dom_import_simplexml ( object $node ): DOMAttr | DOMElement この関数は、指定さ
... れた node ( SimpleXMLElement のインスタンス) を受けとり、 DOMAttr または DOMElement をそれぞれ作成します。 新しい DOMNode は、 既にある同じXMLノードを SimpleXMLElement として参照しています ... 。 パラメータ node インポートする属性または要素 ( SimpleXMLElement のインスタンス) 戻り値 DOMAttr または DOMElement を返します。 変更履歴 バージョン 説明 8.0.0 この関数は、失敗時に null を返さなくなりました。 例 例1 dom_ ...
-
https://man.mtool.work/php/8.3/function.dom-import-simplexml.html
- DOMDocument::createAttribute — 新しい属性を作成する | PHP 8.3 8998
- DOMDocument::createAttribute (PHP 5, PHP 7, PHP 8) DOMDocument::createAttribute — 新しい属性を作成する 説明 public function DOMDocument::createAttribute ( string $localName ): DOMAttr | false この関数は、 DOMAttr クラスの新しいインスタンスを
... ::appendChild() などで) 挿入されない限り、ドキュメント内にあらわれません。 パラメータ localName 属性の名前。 戻り値 新しい DOMAttr 、あるいはエラーが発生した場合は false を返します。 エラー / 例外 以下のエラーコードで DOMException をスローします: DOM_IN ...
-
https://man.mtool.work/php/8.3/domdocument.createattribute.html
- DOMElement::getAttributeNode — 属性ノードを返す | PHP 8.3 8512
- DOMElement::getAttributeNode (PHP 5, PHP 7, PHP 8) DOMElement::getAttributeNode — 属性ノードを返す 説明 public function DOMElement::getAttributeNode ( string $qualifiedName ): DOMAttr | DOMNameSpaceNode | false 現在の要素の、 qualifiedName
... パラメータ qualifiedName 属性の名前。 戻り値 属性ノードを返します。 XML の名前空間宣言 ( xmlns や xmlns:* 属性) については、 DOMAttr オブジェクトではなく、 DOMNameSpaceNode が返されることに注意してください。 参考 DOMElement::hasAttribute() - 属性が存在する ...
-
https://man.mtool.work/php/8.3/domelement.getattributenode.html
- DOMElement::getAttributeNodeNS — 属性ノードを返す | PHP 8.3 8411
- DOMElement::getAttributeNodeNS (PHP 5, PHP 7, PHP 8) DOMElement::getAttributeNodeNS — 属性ノードを返す 説明 public function DOMElement::getAttributeNodeNS ( ? string $namespace , string $localName ): DOMAttr | DOMNameSpaceNode | null 現在の
... 名前空間 URI。 localName ローカル名。 戻り値 属性ノードを返します。 XML の名前空間宣言 ( xmlns や xmlns:* 属性) については、 DOMAttr オブジェクトではなく、 DOMNameSpaceNode が返されることに注意してください。 参考 DOMElement::hasAttributeNS() - 属性が存在す ...
-
https://man.mtool.work/php/8.3/domelement.getattributenodens.html
- DOMElement::removeAttributeNode — 属性を削除する | PHP 8.3 8311
- DOMElement::removeAttributeNode (PHP 5, PHP 7, PHP 8) DOMElement::removeAttributeNode — 属性を削除する 説明 public function DOMElement::removeAttributeNode ( DOMAttr $attr ): DOMAttr | false 属性 attr を要素から削除します。 パラメータ attr
...
-
https://man.mtool.work/php/8.3/domelement.removeattributenode.html
- DOMDocument::createAttributeNS — 関連付けられた名前空間に新しい属性を作成する |... 8227
- DOMDocument::createAttributeNS (PHP 5, PHP 7, PHP 8) DOMDocument::createAttributeNS — 関連付けられた名前空間に新しい属性を作成する 説明 public function DOMDocument::createAttributeNS ( ? string $namespace , string $qualifiedName ): DOMAttr
... | false この関数は、 DOMAttr クラスの新しいインスタンスを作成します。 このノードは、( DOMNode::appendChild() などで) 挿入されない限り、ドキュメント内に ... pace 名前空間の URI。 qualifiedName 属性のタグ名とプレフィックスを、 prefix:tagname のような形式で指定する。 戻り値 新しい DOMAttr 、あるいはエラーが発生した場合は false を返します。 エラー / 例外 以下のエラーコードで DOMException をスローします: DOM_IN ...
-
https://man.mtool.work/php/8.3/domdocument.createattributens.html