Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 0.51 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. reading multiple xml attributes on xml child nodes jquery
  2. <sheetData>
  3.    <row r="1" spans="1:2" x14ac:dyDescent="0.25">
  4.     <c r="A1" t="s">
  5.     <v>0</v>
  6.     </c>
  7.      <c r="B1" t="s">
  8.    <v>1</v>
  9.  </c>
  10.        
  11. $(xml).find("row").each(function(i) {
  12.         v1 =  $(this).find("c").attr("r");
  13.        
  14. $(xml).find("row").each(function(i) {
  15.       var attrs = [];
  16.       v1 =  $(this).find("c").each(function(){
  17.           attrs.push($(this).attr("r"));
  18.       });
  19.  
  20.       //Now attrs will contain both A1 and B1 attribute values.
  21.   });