Created
March 25, 2011 19:53
-
-
Save rupakg/887524 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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