Skip to content


The getChildData(xmlID) method returns the string value of the current child position element. It returns an empty string if:

  • There is no data.


  • There is no child position.


  • The child position element contains descendants.

For example, considering the following XML document and the related current positions:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <DOMAIN NAME="1" LABEL="one">                           <-- Parent position
        <DOMAIN NAME="1.1" LABEL="">                 <-- Main position
            <DOMAIN NAME="1.1.1" DATA LABEL=""/> <-- Child position
            <DOMAIN NAME="1.1.2" LABEL=""/>
    <DOMAIN NAME="2" LABEL="two"/>
    <DOMAIN NAME="3" LABEL="three"/>

The instruction:

var childData = XML.getChildData(xmlID); 

returns DATA in the childData variable.

The syntax is:


where xmlID is the ID of the XML document.