public QName(String qname){
  int colon=qname.indexOf(':');
  if (colon >= 0) {
    prefix=qname.substring(0,colon);
    localName=qname.substring(colon + 1);
  }
 else {
    prefix="";
    localName=qname;
  }
}

public QName ( String qname ) { int colon = qname . indexOf ( ':' ) ; if ( colon >= 0 ) { prefix = qname . substring ( 0 , colon ) ; localName = qname . substring ( colon + 1 ) ; } else { prefix = "" ; localName = qname ; } }
splits a qname into prefix and localname .
