code: private Struct toStruct(Attributes att) {
  	int len = att.getLength();
  	Struct sct = new StructImpl();
  	for (int i = 0; i < len; i++) {
  	    sct.setEL(att.getQName(i), att.getValue(i));
  	}
  	return sct;
      }
docs: cast a Attributes object to a Struct
  
  @param att
  @return Attributes as Struct