Hello, I make an xml request, and I get a tag named item, with some unconventional attributes
$.ajax({
type:"GET",
dataType: 'text',
url : "requests/playlist_jstree.xml",
success: function(retorno){
parser = new DOMParser();
xmlDoc = parser.parseFromString(retorno,"text/xml");
var lista=xmlDoc.getElementById("plid_2").getElementsByTagName("item");
console.log(xmlDoc.getElementById("plid_5").uri);
},
error: function(e){
}
});
This plid_5 is inside the plid_2, I could have accessed it so too:
console.log(lista[0].uri
But neither can access this attribute called uri, in fact the only attribute that works is the id, the other attributes do not access, how do I access the value of these attributes?