how to read from xml file and write to it

338 views
Skip to first unread message

camy

unread,
Apr 18, 2015, 5:34:40 AM4/18/15
to mitappinv...@googlegroups.com
hi

any examples showing how to read data from xml file and create another xml file?

where is the xml file is located in the phone?

some information on the internet mentioned this:

file:///mnt/sdcard/AppInventor/assets/File.xml
file:///android_asset/File.xml

or 
/File.xml

but still cannot find the file on the phone.


Taifun

unread,
Apr 18, 2015, 10:44:15 AM4/18/15
to mitappinv...@googlegroups.com
which xml file are you talking about?
an xml file, which is uploaded as asset into your App Inventor project?

just use the file component to read it, see also the documentation http://ai2.appinventor.mit.edu/reference/components/storage.html#File
Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         

camy

unread,
Apr 25, 2015, 4:34:12 AM4/25/15
to mitappinv...@googlegroups.com
Many thanks, it works, finally get the file from the phone.
Reply all
Reply to author
Forward
0 new messages