ZVON > References > DOM2 Reference

data (attribute )

Owning interface and usage:  
ProcessingInstruction.data

Member of these other interfaces:  
none

Readonly:   no

Type:   DOMString

Description:  
The content of this processing instruction. This is from the first non white space character after the target to the character immediately preceding the ?>.

Exception:  
DOMException NO_MODIFICATION_ALLOWED_ERR
Raised when the node is readonly.


Example:
JavaScript:
  var pi = document.createProcessingInstruction('php', 'echo("another example")');
  var output = pi.data;
Output:
desired your browser
echo("some example")