I understand that xml documents are made up of roots,parents,children,grandchildren and even leaf nodes.
I have a big xml file and I am not 100% on whether or not I am correct in thinking that the depth of an xml files structure goes: 

parent,child,grandchild

**or** 

parent,child,leaf

Below is a sample of the xml file, I have tried searching for other answers on Stack relating to xml structures however I have not found anything that I feel relates to how my file structure is.

Having the DefEnv tag and then the Environment tag underneath is what confuses me on the structure.
Is the root classed as being the same as the parent. If defEnv is classed as the parent does that make environment the child with element content?

```
<DefEnv id="FFT">           //parent?
     <Environment id="Test">  //child?

        <DB id="DDM">
            <JdbcDriver>driver</JdbcDriver>
            <jdbcURL>URL</jdbcURL>          
            <ConPoolmaxConnections>20</ConPoolmaxConnections>

            <DriverProperties>
                <Property>
                <Key>prompt</Key>
                <Value>false</Value> 
        </DriverProperties>
        </DB>
    </Environment>
<DefEnv>

```