GetTarget Method (XDATA)


9.8A

 

The GetTarget method returns the target string value for the DOM_PROCESSING_INSTRUCTION_NODE node type. The method uses the following format:

 

[label]

{object}.GetTarget

[GIVING {return}]

Where:

label
Optional. A Program Execution Label.
object
Required. An XDATA object.
return
Optional. A Numeric Variable that receives the target string value for the DOM_PROCESSING_INSTRUCTION_NODE node type.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The ZERO fand OVER flags are set FALSE.

  2. The EOS flag is set TRUE if the target string value must be truncated to be stored into the {return} variable.

  3. If a target string exists for the current node, the {return} contains the target string data. Otherwise, the {return} variable is set NULL.

  4. The DOM_PROCESSING_INSTRUCTION_NODE 'target' is defined as follows:

  5.  

    DOM_PROCESSING_INSTRUCTION_NODE

     

    <?target data?>

    Example:

     

    <?xml-stylesheet type="text/css" href="style.css"?>

     

    target -> 'xml-stylesheet'

     

    data -> 'type="text/css" href="style.css"'

 

 

See Also: XDATA, XDATA Methods, Method Syntax



PL/B Language Reference GetSysId Method (XDATA) GetText Method (XDATA)