Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

processingInstruction object

Represents a processing instruction for an XML parser.

Document Object Model (DOM) Level 3 Core Specification, Section 1.5Internet Explorer 9

Members

The processingInstruction object has these types of members:

Methods

The processingInstruction object has these methods.

MethodDescription
appendChild

Appends an element as a child to the object.

cloneNode

Copies a reference to the object from the document hierarchy.

compareDocumentPosition

Compares the position of two nodes in a document.

insertBefore

Inserts an element into the document hierarchy as a child node of a parent object.

isSameNode

Determines if two node references refer to the same node.

isSupported

Returns a value indicating whether or not the object supports a specific DOM standard.

removeChild

Removes a child node from the object.

removeNode

Removes the object from the document hierarchy.

replaceChild

Replaces an existing child element with a new child element.

replaceNode

Replaces the object with another element.

swapNode

Exchanges the location of two objects in the document hierarchy.

 

Properties

The processingInstruction object has these properties.

PropertyDescription

data

Gets the data of a processing instruction.

firstChild

Gets a reference to the first child in the childNodes collection of the object.

lastChild

Gets a reference to the last child in the childNodes collection of an object.

localName

Retrieves the local name of the fully qualified XML declaration for a node.

namespaceURI

Retrieves the namespace URI of the fully qualified XML declaration for a node.

nextSibling

Retrieves a reference to the next child of the parent for the object.

nodeName

Gets the name of a particular type of node.

nodeType

Retrieves the type of the requested node.

nodeValue

Gets or sets the value of a node.

ownerDocument

Retrieves the document object associated with the node.

parentNode

Retrieves the parent object in the document hierarchy.

prefix

Retrieves the local name of the fully qualified XML declaration for a node.

previousSibling

Gets a reference to the previous child of the parent for the object.

target

Gets the target of a processing instruction.

textContent

Sets or retrieves the text content of an object and any child objects.

 

Standards information

Remarks

A processing instruction provides direction to an XML parser. The following code example shows a processing instruction that is specified in markup.


<?xml-stylesheet type="text/css" href="style.css"?>

Use the createProcessingInstruction method of a document to create an instance of an ProcessingInstruction object.

See also

createProcessingInstruction

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.