PROPERTY:  ProcessingInstruction::data

The data property is read-only and returns the 'content' of a processing instruction. This consists of everything from the first non-white-space character after the target through the character immediately before the '?>' which terminates the instruction. This value is the same as that returned by the nodeValue property for a processing instruction.

The following example uses a typical processing instruction for an XML document:

<?xml version="1.0"?>

The code creates a ProcessingInstruction node and then displays the value contained in the data property.

Code (JavaScript):
pi = xml_doc.firstChild;


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information