Next / Previous / Contents / TCC Help System / NM Tech homepage

12.3. Document.createProcessingInstruction()

To create a new ProcessingInstruction node representing an XML processing instruction with target t and data d, use this method on a Document object D:

D.createProcessingInstruction ( t, d )

The method returns a new ProcessingInstruction object with no parent. To attach an unattached node pi to a parent node p:

p.appendChild ( pi )