GetPubId Method (XDATA)


9.8A

 

The GetPubId method returns the 'pubid' string value for the DOM_DOCUMENT_TYPE_NODE node type. The 'pubid' string of the DOM_DOCUMENT_TYPE_NODE is found in the <!DOCTYPE> node data. . The method uses the following format:

 

[label]

{object}.GetPubId

[GIVING {return}]

Where:

label

Optional. A Program Execution Label.

object

Required. An XDATA object.

return

Optional. A Character String Variable or literal that receives the pubid string value for the DOM_DOCUMENT_TYPE_NODE node type.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The ZERO and OVER flags are set FALSE.

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

  3. The pubid data string is found in the DOM_DOCUMENT_TYPE_NODE follows:

  4.  

    DOM_DOCUMENT_TYPE_NODE

     

    <!DOCTYPE name PUBLIC "pubid" "sysid">

    Example:

     

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict //EN" "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

 

 

See Also: XDATA, XDATA Methods, Method Syntax



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