Given a XML file, translate the XML file into a tree
Sigiloso
CreateTree(treeNode) { while stack is not empty nextTag = read.nextTag if(nextTag is child) { if nextTag is open stack.push(nextTag) childNode = new node(nextTag) treeNode.add(nextTag) else stack.pop() } else{ stack.pop() treeNode = treeNode.parent() } return treeNode; } stack.push(rootTag) rootNode = new node(rootTag) CreateTree(rootNode);