public clsEquipmentTypeInfo[] m_clsGetXMLTable(ref int returnrows) { string strRecievedXML = ""; long lngSucc = 0; clsEquipmentTypeInfo[] EquipmentTypeInfo = null; com.digitalwave.EquipmentTypeService.clsEquipmentTypeService objETServ = (com.digitalwave.EquipmentTypeService.clsEquipmentTypeService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.EquipmentTypeService.clsEquipmentTypeService)); try { lngSucc = objETServ.m_lngGetXMLTable(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, ref strRecievedXML, ref returnrows); if (returnrows > 0) { EquipmentTypeInfo = new clsEquipmentTypeInfo[returnrows]; System.Xml.XmlDocument doc = new System.Xml.XmlDocument(); doc.LoadXml(strRecievedXML); XmlNode root = doc.DocumentElement; for (int i = 0; i < root.ChildNodes.Count; i++) { EquipmentTypeInfo[i] = new clsEquipmentTypeInfo(); EquipmentTypeInfo[i].strEquipmentTypeID = root.ChildNodes[i].Attributes["EQUIPMENTTYPEID"].Value; EquipmentTypeInfo[i].strEquipmentTypeName = root.ChildNodes[i].Attributes["EQUIPMENTTYPENAME"].Value; EquipmentTypeInfo[i].strPYCode = root.ChildNodes[i].Attributes["PYCODE"].Value; } } } finally { //objETServ.Dispose(); } return(EquipmentTypeInfo); }