protected List<TreeNode> createChildList(){
  Branch branch=getXmlBranch();
  int size=branch.nodeCount();
  List<TreeNode> childList=new ArrayList<TreeNode>(size);
  for (int i=0; i < size; i++) {
    Node node=branch.node(i);
    if (node instanceof CharacterData) {
      String text=node.getText();
      if (text == null) {
        continue;
      }
      text=text.trim();
      if (text.length() <= 0) {
        continue;
      }
    }
    childList.add(createChildTreeNode(node));
  }
  return childList;
}

protected List < TreeNode > createChildList ( ) { Branch branch = getXmlBranch ( ) ; int size = branch . nodeCount ( ) ; List < TreeNode > childList = new ArrayList < TreeNode > ( size ) ; for ( int i = 0 ; i < size ; i ++ ) { Node node = branch . node ( i ) ; if ( node instanceof CharacterData ) { String text = node . getText ( ) ; if ( text == null ) { continue ; } text = text . trim ( ) ; if ( text . length ( ) <= 0 ) { continue ; } } childList . add ( createChildTreeNode ( node ) ) ; } return childList ; }
factory method to create list of children treenodes
