/**
 * xml.js
 * Funciones comunes para uso del modelo DOM de XML en los navegadores
 * Para que funcione este modulo es necesario utilizar comun.js
 */
 
 
/**
 * Obtiene el texto adentro de un nodo
 */
function getXMLNodeText(xmlNode)
{
   var text=null;
   if(isExplorer())
   {
      text=xmlNode.firstChild.text;
   }
   else
   {
      text=xmlNode.firstChild.textContent;
   }
   return text;
}

/**
 * Obtiene el valor de un atributo de un nodo
 */
function getXMLNodeAttributeValue(xmlNode,attributeName)
{
   if(isExplorer())
   {
   	 return xmlNode.getAttribute(attributeName);
   }
   else
   {
   	return xmlNode.attributes[attributeName].value;
   }
}
