Dom-processinginstruction-object

提供:Dev Guides
移動先:案内検索

DOM-ProcessingInstructionオブジェクト

_ProcessingInstruction_は、XMLドキュメントのプロローグセクションに通常含まれているアプリケーション固有の情報を提供します。

処理命令(PI)を使用して、情報をアプリケーションに渡すことができます。 PIは、ドキュメント内のマークアップ外のどこにでも表示できます。 それらは、文書タイプ定義(DTD)を含むプロローグ、テキストコンテンツ、または文書の後に表示できます。

PIは特別なタグ* <?で始まり、?> で終わります。 コンテンツの処理は、文字列?> *が検出された直後に終了します。

属性

次の表は、_ProcessingInstruction_オブジェクトの属性を示しています-

Attribute Type Description
data DOMString It is a character that describes the information for the application to process immediately preceding the ?>.
target DOMString This identifies the application to which the instruction or the data is directed.