Skip to content

Instantly share code, notes, and snippets.

@rupakg
Created March 25, 2011 19:53
Show Gist options
  • Save rupakg/887524 to your computer and use it in GitHub Desktop.
Save rupakg/887524 to your computer and use it in GitHub Desktop.
domDocument = Titanium.XML.parseString(this.responseText)
domNodeList = domDocument.getElementsByTagName("Contents")
objectsList = [];
for (var i = 0; i < domNodeList.length; i++)
{
keyName = item.getElementsByTagName('Key').item(0).textContent;
size = objects[i].getElementsByTagName('Size').item(0).textContent;
objectsList[i] = {
key: keyName,
size: size
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment