currentNode.addChild( factory.makeNode( currentNode, currentNode.getChildCount(), new XMLTextNode( currentText.trim().toCharArray() ) ) );
currentNode.addChild( factory.makeNode(  new XMLTextNode( currentText.trim().toCharArray() ) ) );
   public void endElement (String uri, String name, String qName)   {     if( currentText != null )       currentNode.addChild( factory.makeNode( currentNode, currentNode.getChildCount(),          new XMLTextNode( currentText.trim().toCharArray() ) ) );     currentText = null;     currentNode = (Node) treestack.pop();   }