CREATE-NODE ( x-node-handle , name , type )
|
If the SUBTYPE is . . .
|
then the NAME attribute is . . .
|
ATTRIBUTE
|
The name of the attribute
|
CDATA-SECTION
COMMENT
DOCUMENT-FRAGMENT
TEXT
|
A constant value; the name parameter is ignored
|
ELEMENT
|
The name of the XML tag, with any namespace prefix included
|
ENTITY-REFERENCE
|
The name of the entity referenced without leading ampersand and trailing semicolon
|
PROCESSING-INSTRUCTION
|
The target; the first token following the <? markup
|
/* Assume hNoderef has previously been added to the tree. Create an ABL handle
that can refer to a node in an XML parse tree.*/ CREATE X-NODEREF hNoderefChild. /* Create an XML node whose name is "Address" & whose type is "ELEMENT" */ hDoc:CREATE-NODE(hNoderefChild, "Address", "ELEMENT") /* Put this child into the tree and ultimately into the document. */ hNoderef:APPEND-CHILD(hNoderefChild). |