private XMLElement2 createAnotherElement(){
  return new XMLElement2(this.entities,this.ignoreWhitespace,false,this.ignoreCase);
}

private XMLElement2 createAnotherElement ( ) { return new XMLElement2 ( this . entities , this . ignoreWhitespace , false , this . ignoreCase ) ; }
creates a new similar xml element . < p > you should override this method when subclassing xmlelement .
