function CustomObject(d){for(var c=d.attributes,b=0;b<c.length;b++){var a=c[b];if(a.nodeName.indexOf("xmlns:")==0)continue;this[a.nodeName]=a.nodeValue}}CustomObject.prototype.toString=function(){var a="";for(p in this)a+=p+"="+this[p]+"| ";return a};function CustomObjectArray(c){if(c.documentElement.nodeName.indexOf("ArrayOf")!=0){alert('The nodeName of the "documentElement" of the xmlDocument MUST be of the form "ArrayOfxxx"');return}for(var b=c.documentElement.childNodes,a=0,e=[],a=0;a<b.length;a++){var d=b[a];d.nodeName!="#text"&&e.push(new CustomObject(d))}return e}function DataRow(a){return new CustomObject(a)}function DataTable(d){var b=d.childNodes,a=0;this.dataRows=[];for(a=0;a<b.length;a++){var c=b[a];c.nodeName=="dataRow"&&this.dataRows.push(new DataRow(c))}}DataTable.prototype.toString=function(){for(var b="",a=0,a=0;a<this.dataRows.length;a++)b+=this.dataRows[a].toString()+"\r\n";return b};function DataSet(d){var b=d.documentElement.childNodes;this.dataTables=[];for(var a=0,a=0;a<b.length;a++){var c=b[a];this.dataTables.push(new DataTable(c))}}DataSet.prototype.toString=function(){for(var b="",a=0,a=0;a<this.dataTables.length;a++)b+=this.dataTables[a].toString()+"\r\n";return b};function createObjectFromXml(a){return a.documentElement.nodeName=="dataSet"?new DataSet(a):a.documentElement.nodeName.indexOf("ArrayOf")==0?new CustomObjectArray(a):new CustomObject(a.documentElement)};
