
Untitled
By: a guest on
May 1st, 2012 | syntax:
None | size: 0.51 KB | hits: 11 | expires: Never
reading multiple xml attributes on xml child nodes jquery
<sheetData>
<row r="1" spans="1:2" x14ac:dyDescent="0.25">
<c r="A1" t="s">
<v>0</v>
</c>
<c r="B1" t="s">
<v>1</v>
</c>
$(xml).find("row").each(function(i) {
v1 = $(this).find("c").attr("r");
$(xml).find("row").each(function(i) {
var attrs = [];
v1 = $(this).find("c").each(function(){
attrs.push($(this).attr("r"));
});
//Now attrs will contain both A1 and B1 attribute values.
});