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/2418207 to your computer and use it in GitHub Desktop.
Save lfcipriani/2418207 to your computer and use it in GitHub Desktop.
default xml namespace = '';
var result = <markets />
for (i = 0; i < marketList.length; i++) {
result.markets += <market><dayOfTheWeek>{marketList[i].day}</dayOfTheWeek><address>{marketList[i].address}</address></market>;
}
response.object = result;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment