Skip to content


The getChildTagName(xmlID) method returns the tag name of the child position element.

If there is no child position, it returns an empty string.

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" LABEL=""/>      <-- Child position
            <DOMAIN NAME="1.1.2" LABEL=""/>
    <DOMAIN NAME="2" LABEL="two"/>
    <DOMAIN NAME="3" LABEL="three"/>

The instruction:

var childTagname = XML.getChildTagName(xmlID); 

returns DOMAIN in the childTagname variable.

The syntax is:


where xmlID is the ID of the XML document.