开发者

Save XML to Recordset

I am working on android, and I am parsing a huge XML file. so all the time I need to get some data from that XML file, which is making the application very slow.

Is there any way that I can create a data set/record set/result set of the XML file

so that later I can get the d开发者_如何学Cata from the newly created set.

and also how to read that set :)

thanks alot!!

regards..

kai!!


To begin with, any application that often needs to search huge XML files are going to be somewhat slow.

I don't know what's in your XML file, but if it is suited for storing in SQL database, that might be an idea. Read it once, put it in a database and then searching for stuff should be a lot faster (given the right indexes, of course)

If the data is not too big to keep in memory all at once, you might be able to build a data structure in memory that you can easily find stuff in.

It's really tricky to give a good answer without knowing a little bit more about what sort of data it is, if it is too big to keep in memory and how you go about finding data.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜