How can I access the values of an XML tags with jquery?

0

This is the example of an XML document and I want to access the value of the date that is with the name of fecDocto, how do I get that value?

    
asked by JessússGaarcíaa 24.08.2018 в 22:06
source

1 answer

0

For example, for the first element, see if this can help you:

$.get("Documentos.xml", function (xml) {
    $(xml).find("ImgIdentOficialFrontal").each(function () {

       var name = $(this).attr('name');
       var fecDocto= $(this).attr('fecDocto');

       alert("name:" + name + " / fecDocto: " + fecDocto);
    });
});
    
answered by 24.08.2018 в 22:17