There are two types of nodes: branches and leafs.
diputree can have branches and/or leafs. Only branches can have other branches and/or leafs.
diagram of <diputree>, diagram of<b> and diagram of <l>
<diputree> <has> <b/> </has> </diputree> |
the document element diputree
<diputree>
the has relation between diputree and the branch
<has>
the branch
<b/>
</has>
</diputree>
<diputree> <has> <b/> </has> <has> <l/> </has> </diputree> |
the document element diputree
<diputree>
the has relation between diputree and the branch
<has>
the branch
<b/>
</has>
the has relation between diputree and leaf
<has>
the leaf
<l\>
</has>
</diputree>
<diputree> <has> <b/> <l/> </has> </diputree> |
the document element diputree
<diputree>
the has relation between diputree and the branch and the has relation between diputree and the leaf, the two has relations are compressed in one <has>.
<has>
the branch
<b/>
the leaf
<l/>
</has>
</diputree>
<diputree> <has> <b> <has> <b/> </has> </b> </has> </diputree> |
the document element diputree
<diputree>
the has relation between diputree and the branch.
<has>
the parent branch
<b>
the has relation between parent branch and the child branch.
<has>
the child branch
<b/>
</has>
</b>
</has>
</diputree>