public class NewClass {
public static void main(String[] args){
Tree tree=new Tree();
XMLController ctr=new XMLController(tree);
tree.getRoot().setData("NewTree");
Node n1=new Node("n1",tree.getRoot());
Node n2=new Node("n2",tree.getRoot());
Node n3=new Node("n3",tree.getRoot());
n1.setFieldName("f1");
n1.setFieldType("String");
n1.addField();
n2.setFieldName("f2");
n2.setFieldType("String");
n2.addField();
Node n21=new Node("n2.1",n2);
Node n22=new Node("n2.2",n2);
Node n31=new Node("n3.1",n3);
n31.setFieldName("f31");
n31.setFieldType("String");
n31.addField();
Node n32=new Node("n3.2",n3);
ctr.parseToXML();
String xml = "<?xml version=\"1.0\"?><!DOCTYPE cael []>"+