Click to return to the XML (Extensible Markup Language) home page    
XMLDOMParseError Object     XMLDOMText Object     XML XMLDOM Objects    
Web Workshop  |  XML (Extensible Markup Language)

XMLDOMProcessingInstruction Object


The XMLDOMProcessingInstruction object represents a processing instruction, which XML defines to keep processor-specific information in the text of the document.

Remarks

The content of the XMLDOMProcessingInstruction node is the entire content between the delimiters of the processing instruction (PI).

The content of this node is usually subdivided into the target, the application to which this processing instruction is directed, and the content of the processing instruction. The target consists of the first token following the start of the tag, while the content of the PI refers to the text from the first non-white-space character after the target through the character immediately preceding the ?> that signifies the end of the tag.

Members

Example

The following example creates a new XMLDOMProcessingInstruction object and displays its XML representation:

Dim xmlDoc
Dim pi

Set xmlDoc = CreateObject("microsoft.xmldom")
xmlDoc.load("c:\books.xml")
Set pi = xmlDoc.createProcessingInstruction("xml", " version=""1.0""")
MsgBox pi.xml

See Also

XMLDOMDocument



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.