function eXml(){
	this.conXml = function(arqXml){
		try{
			var objeXml, objeXmlDoc;
			if (window.ActiveXObject) {
				objeXml = new ActiveXObject("Microsoft.XMLDOM");
				objeXml.async="false";
				objeXml.load(arqXml);
				objeXmlDoc = objeXml;
			}
			else if(window.XMLHttpRequest) {
				objeXml = new XMLHttpRequest();
				objeXml.ignoreWhite = true;
				objeXml.open("GET", arqXml, false);
				objeXml.send(null);
				objeXmlDoc = objeXml.responseXML;
			}
			this.rootNode = objeXmlDoc;
			this.retorno = true;
		}catch(e){
			this.retorno = false;
			alert("Falha na conexão!");
		}
	}
	
	this.getNode = function(tagName){
		this.node = this.rootNode.getElementsByTagName(tagName);
	}
	this.getChildNode = function(node, i, tagName){
		this.childnode = node.item(i).getElementsByTagName(tagName);
		return this.childnode;
	}
	this.getValue = function(node, indice){
		return node.item(indice).firstChild.data;
	}
	this.returnArray = function(node, varArray){
		for(i=0;i<node.length;i++){
			varArray[varArray.length++] = this.getValue(node, i);
		}
	}
}
