DocumentoXml= document.implementation.createDocument("","", null);
DocumentoXml.load("biblioteca.xml");
DocumentoXml.onload=function(){
DocumentoXml.sync=false;
var estado = DocumentoXml.readyState;
var errorcin = DocumentoXml.parseError;
alert("ESTADO = "+estado);
alert("ERROR = "+errorcin.errorCode);
if(errorcin.errorCode==0){
raiz = DocumentoXml.documentElement;
for(i=0;i<raiz.childNodes.length;i++){
alert(raiz.childNodes.item(i).text);
}
}