DOMDocument->createProcessingInstruction()
(No version information available, might be only in CVS)
DOMDocument->createProcessingInstruction() — 新しい PI ノードを作成する
説明
DOMDocument
DOMProcessingInstruction createProcessingInstruction
( string $target
[, string $data
] )
この関数は、DOMProcessingInstruction クラスの新しいインスタンスを作成します。このノードは、DOMNode->appendChild() などで 挿入されない限り、ドキュメント内に現われません。
パラメータ
- target
-
処理命令の対象。
- data
-
処理命令の内容。
返り値
新しい DOMProcessingInstruction、 あるいはエラーが発生した場合には FALSE を返します。
エラー / 例外
- DOM_INVALID_CHARACTER_ERR
-
target が無効な文字を含んでいる場合に発生します。
参考
- DOMNode->appendChild()
- DOMDocument->createAttribute()
- DOMDocument->createAttributeNS()
- DOMDocument->createCDATASection()
- DOMDocument->createComment()
- DOMDocument->createDocumentFragment()
- DOMDocument->createElement()
- DOMDocument->createElementNS()
- DOMDocument->createEntityReference()
- DOMDocument->createTextNode()