I have a xml file with info inside. I want to convert the xml file to sqlite database without using a SD card in android platform(Java Language). Does anyone have any idea how to do it?
A:
Sure!
There should be a folder called assets in your project folder. Put your XML file inside that folder and use Resources.openRawResource(int id) to grab an input stream for your XML file. Having done this before, I suggest that if your XML file is of significant size, use an event-based XML parser so you can read your XML in pieces instead of loading it in memory.
ZachM
2010-07-29 05:48:18
Hi ZachM,I don't really understand what you mean.
Gladys
2010-07-29 14:17:25