I have following Three different Nodes Hierarchy (data):
1)
Root
FirstChild
leaf
2)
Root
SecondChild
leaf
3)
Root
ThirdChild
LeafRoot
leaf
Result i want as below in One tree :
Root
FirstChild
leaf
SecondChild
leaf
ThirdChild
LeafRoot
leaf
Following Code i am using to get child nodes from three different document.
NodeList nodeList1 = document1
.getElementsByTagName("root");
NodeList nodeList2 = document2
.getElementsByTagName("root");
NodeList nodeList3 = document3
.getElementsByTagName("root");