ProcessingInstruction in DOM Level 2 Core
The ProcessingInstruction interface represents a processing instruction in the document.
Inherits from:
For official information please see http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1004215813.
Instance Properties
| name | type | description |
|---|---|---|
| nodeName | String | (read only) [from Node] |
| nodeValue | String | [from Node] |
| nodeType | Number | (read only) [from Node] |
| parentNode | Node | (read only) [from Node] |
| childNodes | NodeList | (read only) [from Node] |
| firstChild | Node | (read only) [from Node] |
| lastChild | Node | (read only) [from Node] |
| previousSibling | Node | (read only) [from Node] |
| nextSibling | Node | (read only) [from Node] |
| attributes | NamedNodeMap | (read only) [from Node] |
| ownerDocument | Document | (read only) [from Node] |
| namespaceURI | String | (read only) [from Node] |
| prefix | String | [from Node] |
| localName | String | (read only) [from Node] |
| target | String | (read only) |
| data | String |
Instance Methods
| name | returns | description |
|---|---|---|
| insertBefore() | Node | [from Node] |
| replaceChild() | Node | [from Node] |
| removeChild() | Node | [from Node] |
| appendChild() | Node | [from Node] |
| cloneNode() | Node | Return a new copy of the node. [from Node] |
| isSupported() | Boolean | [from Node] |
| hasChildNodes() | Boolean | [from Node] |
| normalize() | (none) | [from Node] |
| hasAttributes() | Boolean | [from Node] |
Description
The
ProcessingInstruction interface represents a "processing instruction", used in XML as a way to keep processor-specific information in the text of the document. Methods that return a ProcessingInstruction
| name | of object | description |
|---|---|---|
| createProcessingInstruction() | Document |