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

- 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'")