UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

C:\Program Files\Adobe\FrameMaker8\UniData 7.2\7.2rebranded\BASICREF\BASRX.fm 3/5/10 XDOMCreateNode Syntax XDOMCreateNode(xmlHandle, nodeName, nodeValue, nodeType, nodeHandle) Note: This function is case-sensitive. If you want it to be case-insensitive, you must compile your programs using the BASIC command with the -i option. Description XDOMCreateNode creates a new node in the DOM structure. Parameters The following table describes each parameter of the syntax. Parameters Description 1-936 UniBasic Commands Reference xmlHandle A handle to the DOM structure. This handle acts as the context when resolving the namespace_uri from the prefix or resolving the prefix from the namespace_uri. [IN] nodeName The name of the node to be created. [IN] The name can be in any of the following formats: Local_name prefix: local_name:namespace_uri prefix:local_name :local_name:namespace_uri The nodeName parameter uses the in-encoding parameter set in the system-level or account-level xmlconfig file, the XMLSE- TOPTIONS command, or the XMLSetOptions() API. XDOMCreateNode Parameters

C:\Program Files\Adobe\FrameMaker8\UniData Parameters Description nodeValue The string to hold the node value. [IN] The nodeValue parameter uses the in-encoding parameter set in the system-level or account-level xmlconfig file, the XMLSE- TOPTIONS command, or the XMLSetOptions() API. nodeType The type of the node to be created. Valid values are: XDOM.ELEMENT.NODE XDOM.ATTR.NODE XDOM.TEXT.NODE XDOM.CDATA.NODE XDOM.ENTITY.REF.NODE XDOM.ENTITY.NODE XDOM.PROC.INST.NODE XDOM.COMMENT.NODE XDOM.DOC.NODE XDOM.DOC.TYPE.NODE XDOM.DOC.FRAG.NODE XDEOM.NOTATION.NODE XDOM.XML.DECL.NODE UniData uses this argument, along with direction and childIndex, to get the right type node. For example, if direction is XDOM.PREV.SIBLING, and nodeType is XDOM.ELEMENT.NODE, UniData finds the element node that is the first previous sibling of nodeHandle. If direction is XDOM.CHILD, childIndex is XDOM.FIRST.CHILD, and nodeType is XDOM.ELEMENT.NODE, UniData finds the element node that is the first element child of nodeHandle. If the direction is XDOM.CHILD, childIndex is 2, and nodeType is XDOM.ELEMENT.NODE, UniData finds the element node that is the second element child of nodeHandle. When the direction is XDOM.NEXT.SIBLING.WITH.SAME.NAME, XDOM.PREV.SIBLING.WITH.SAME.NAME, or XDOM.PARENT, this argument is not used. [IN] nodeHandle A handle to the node to be created in the DOM structure. [IN] XDOMCreateNode Parameters (continued) XDOMCreateNode 1-937

C:\Program Files\Adobe\FrameMaker8\UniData 7.2\7.2rebranded\BASICREF\BASRX.fm<br />

3/5/10<br />

XDOMCreateNode<br />

Syntax<br />

XDOMCreateNode(xmlHandle, nodeName, nodeValue, nodeType, nodeHandle)<br />

Note: This function is case-sensitive. If you want it to be case-insensitive, you must<br />

compile your programs using the BASIC command with the -i option.<br />

Description<br />

XDOMCreateNode creates a new node in the DOM structure.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameters Description<br />

1-936 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

xmlHandle A handle to the DOM structure. This handle acts as the context<br />

when resolving the namespace_uri from the prefix or resolving<br />

the prefix from the namespace_uri.<br />

[IN]<br />

nodeName The name of the node to be created. [IN]<br />

The name can be in any of the following formats:<br />

Local_name<br />

prefix: local_name:namespace_uri<br />

prefix:local_name<br />

:local_name:namespace_uri<br />

The nodeName parameter uses the in-encoding parameter set in<br />

the system-level or account-level xmlconfig file, the XMLSE-<br />

TOPTIONS command, or the XMLSetOptions() API.<br />

XDOMCreateNode Parameters

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!