public static SMSFlatFileTreeNode createTree(String xml,Debug debug) throws Exception {
  SMSFlatFileTreeNode root=null;
  Document doc=XMLUtils.toDOMDocument(xml,debug);
  Node rootNode=XMLUtils.getRootNode(doc,XML_ROOT_ELEMENT);
  if (rootNode != null) {
    root=createNode(XMLUtils.getChildNode(rootNode,XML_NODE_ELEMENT));
  }
  return root;
}

public static SMSFlatFileTreeNode createTree ( String xml , Debug debug ) throws Exception { SMSFlatFileTreeNode root = null ; Document doc = XMLUtils . toDOMDocument ( xml , debug ) ; Node rootNode = XMLUtils . getRootNode ( doc , XML_ROOT_ELEMENT ) ; if ( rootNode != null ) { root = createNode ( XMLUtils . getChildNode ( rootNode , XML_NODE_ELEMENT ) ) ; } return root ; }
creates directory tree from a xml .
