Skip to content

Instantly share code, notes, and snippets.

@khajer
Created August 14, 2011 07:37
Show Gist options
  • Select an option

  • Save khajer/1144676 to your computer and use it in GitHub Desktop.

Select an option

Save khajer/1144676 to your computer and use it in GitHub Desktop.
read local file (xml)
var f = Titanium.Filesystem.getFile(
Titanium.Filesystem.resourcesDirectory,
'data/branch.xml'
);
var fdata = f.read();
var xml = Titanium.XML.parseString(fdata.text);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment