GetData Method (XDATA)
9.8A
The GetData method returns the data string value for a DOM_PROCESSING_INSTRUCTION_NODE node. The method uses the following format:
|
|
|
|
Where:
Flags Affected: EOS, OVER, ZERO
Note the following:
The ZERO and OVER flags are set FALSE.
The EOS flag is set TRUE if the data string value must be truncated to be stored into the {return} variable.
If the data string exists, the {return} contains the string data. Otherwise, the {return} variable is set NULL.
If this method is executed on a node type other than a DOM_PROCESSING_INSTRUCTION_NODE node, the {return} variable is set a NULL PLB variable. Under normal operations, the PLB program would execute this method after the node type has been determined.
The DOM_PROCESSING_INSTRUCTION_NODE 'data' is defined as follows:
DOM_PROCESSING_INSTRUCTION_NODE
Example:
target -> 'xml-stylesheet'
data -> 'type="text/css" href="style.css"'
See Also: XDATA, XDATA Methods, Method Syntax
![]() |