11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C:\Program<br />

Files\Adobe\FrameMaker8\UniData<br />

XDOMClone<br />

Syntax<br />

XDOMClone(xmlHandle, newXmlHandle, depth)<br />

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

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

Description<br />

Duplicates the DOM subtree specified by xmlHandle to a new subtree specified by<br />

newXmlHandle. The duplicate node has no parent (parentNode returns null.).<br />

Cloning an element copies all attributes and their values, including those generated<br />

by the XML processor, to represent defaulted attributes, but this method does not<br />

copy any text it contains unless it is a deep clone, since the text is contained in a child<br />

Text node. Cloning any other type of node simply returns a copy of this node.<br />

Parameters<br />

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

Parameter Description<br />

xmlHandle Handle to the DOM subtree. [IN]<br />

newXmlHandle Handle to the new DOM subtree. [IN]<br />

depth XDOM.FALSE: Clone only the node itself.<br />

XDOM.TRUE: Recursively clone the subtree under the specified node.<br />

[IN]<br />

XDOMClone Parameters<br />

XDOMClone 1-933

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

Saved successfully!

Ooh no, something went wrong!