Skip to content

Instantly share code, notes, and snippets.

@lfcipriani
Created April 19, 2012 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lfcipriani/2418204 to your computer and use it in GitHub Desktop.
Save lfcipriani/2418204 to your computer and use it in GitHub Desktop.
default xml namespace = '';
for each (var item in xdata) {
if (i == 0) {
day = item.toString().trim();
} else if (i == 1) {
address += item.toString().trim() + ", ";
} else if (i == 2) {
number = item.toString().trim();
if (number != "S/N" && number.length != 0) {
address += number + ", ";
}
} else if (i == 3) {
address += "Sao Paulo, Brazil";
marketList.push({day: day, address: address});
address = "";
i = -1;
}
i++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment