Microsoft XML SDK 2.6 - XML Reference

data Property (XMLDOMProcessingInstruction)

Stores the content of the processing instruction, excluding the target.

strValue = oXMLDOMProcessingInstruction.data
objXMLDOMProcessingInstruction.data = strValue

Remarks

String. This property is read/write. The data has the same value as the nodeValue property.

Example

The following VBScript example iterates through the document's child nodes. If it finds a node of type NODE_PROCESSING_INSTRUCTION (7), it displays the node's data.

Dim xmlDoc
Set xmlDoc = CreateObject("Msxml2.DOMDocument")
xmlDoc.load("c:\books.xml")
For i = 0 TO (xmlDoc.childNodes.length -1)
  If xmlDoc.childNodes.item(i).nodeType = 7 Then 
    MsgBox xmlDoc.childNodes.item(i).data
  End If
Next

See Also

Applies To: XMLDOMProcessingInstruction Object