org.w3c.dom.Document.createProcessingInstruction
method

    public createProcessingInstruction(target as String, data as String) as ProcessingInstruction throws DOMException

Description

Creates a processing instruction node.

Parameters

Parameter | Description
--- | ---
`target` | Processing instruction target.
`data` | Processing instruction data.

Returns

New processing instruction.

Throws

- DOMException if the target is invalid.

Example

    pi = document.createProcessingInstruction("xml-stylesheet", "href='style.css'")