else { Hashtable item = new Hashtable(); item.put("name", attribName); item.put("value", obj.attribValue); item.put("type", obj.attribType); objRefList.add(item);
else { if ((obj.attribType !=Constants.LIST_TYPE) || (((List)obj.attribValue).size()!=0)) { Hashtable item = new Hashtable(); item.put("name", attribName); item.put("value", obj.attribValue); item.put("type", obj.attribType); objRefList.add(item); }
  protected Hashtable getXMLInfo () {    Hashtable xmlInfo = new Hashtable();    ArrayList attribList = new ArrayList();    ArrayList objRefList = new ArrayList();    for (int i = 0; i < attribHash.size(); i++) {      String attribName = (String) attribOrder.get(i);      XMLAttribute obj = (XMLAttribute) attribHash.get(attribName);      if (obj != null && obj.attribValue != null) {        if ( obj.attribType == Constants.STRING_TYPE)        {          if (attribName.equals(sPCDATAAttribute)) {            xmlInfo.put("PCDATA", obj.attribValue);          } else {            Hashtable item = new Hashtable();            item.put("name", attribName);            item.put("value", obj.attribValue);            attribList.add(item);          }        }        else {          if(obj.attribType == Constants.NUMBER_TYPE) {  //it's an attribute of Number type            Hashtable item = new Hashtable();            item.put("name", attribName);            item.put("value", obj.attribValue.toString());            attribList.add(item);          }          else {// it's an obj ref, add to list            Hashtable item = new Hashtable();            item.put("name", attribName);            item.put("value", obj.attribValue);            item.put("type", obj.attribType);            objRefList.add(item);          }        }      }    }    xmlInfo.put("attribList", attribList);    xmlInfo.put("childObjList", objRefList);    return xmlInfo;  }