I'm trying to pull in an external file which contains only 2 columns but several rows, the first is just a numeric reference in ascending order and should be just skipped but the second contains value which I need to push into an array so they can be injected into the page. So far all I can get it to do is pull in all the values.
var catalogIn = [];
$.ajax({
url: 'content-catalog.xml',
type: 'GET',
dataType: 'xml',
success: function (returnedXMLResponse) {
$(returnedXMLResponse).find('Row').each(function () {
// loop over each cell
$('Data', this).each(function () {
// push row into main array
catalogIn.push($(this).text());
});
})
}
});