public XMLElement(String fullName,String namespace,String systemID,int lineNr){
  this.attributes=new ArrayList();
  this.children=new ArrayList(8);
  this.fullName=fullName;
  if (namespace == null) {
    this.name=fullName;
  }
 else {
    int index=fullName.indexOf(':');
    if (index >= 0) {
      this.name=fullName.substring(index + 1);
    }
 else {
      this.name=fullName;
    }
  }
  this.namespace=namespace;
  this.content=null;
  this.lineNr=lineNr;
  this.systemID=systemID;
  this.parent=null;
}

public XMLElement ( String fullName , String namespace , String systemID , int lineNr ) { this . attributes = new ArrayList ( ) ; this . children = new ArrayList ( 8 ) ; this . fullName = fullName ; if ( namespace == null ) { this . name = fullName ; } else { int index = fullName . indexOf ( ':' ) ; if ( index >= 0 ) { this . name = fullName . substring ( index + 1 ) ; } else { this . name = fullName ; } } this . namespace = namespace ; this . content = null ; this . lineNr = lineNr ; this . systemID = systemID ; this . parent = null ; }
creates an empty element .
