存储XML,XML中更新记录,检索存储BB设备上的XML特定记录 [英] Store XML, update record in XML, retrieve a specific record in XML stored on BB device

查看:162
本文介绍了存储XML,XML中更新记录,检索存储BB设备上的XML特定记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写一个黑莓应用程序,我想存储
通过Web服务在我的BB器返回的数据。早些时候,我去
使用SQLite存储在移动,但作为数据我一派,也没有使用SQLite编程,发现
有些BB设备不支持SQLite库而无法创建数据库。然后,我决定继续
该数据通过Web服务返回的XML格式,我的BB设备上。

I am writing a blackberry application where I want to store the data returned by a web service in my BB device. Earlier I was going to use SQLite for storing the data in mobile but as I googled and also did programming using SQLite and found that some BB devices don't support SQLite library and fail to create the database. Then I decided to keep the data returned by webservice in a XML format on my BB device.

我只是想知道有没有通过黑莓的任何方法或方式
我可以解析存储在XML数据,更新,或者直接访问
存储在XML,而不是遍历整个XML n次,并找到匹配的记录的特定记录。

I just want to know is there any method or way in blackberry through which i can parse the data stored in XML, update it, or directly access a particular record stored in the XML instead of traversing the whole XML n times and finding the matched record.

请指引我,因为我是新来的BB设备中存储的数据。是的做法,
我想到的是存储数据的XML权利或我应该用别的东西吗?

Please guide me as I am new to storing data in BB device. Is the approach which I am thinking to store data in XML right or shall I use something else?

Yogesh乔杜里

推荐答案

您好是根据您的要求和选择多种选项:

Hi there are many options depending upon your requirement and choice:

1)RMS - 更好如果u - [R使用的MIDlet使用
2)持久性 - 为CLDC
3)sqlite的 - 设备支持OS 5.0或更高版本
4)文件系统 - 任何设备

1) RMS - better to use if u r using midlets 2) Persistence - for cldc 3) Sqlite - devices supporting OS 5.0 or later 4) File system - any device

持久性:当u得到你的XML响应尝试分析并从中获取组件,保存在一个载体,坚持device.You的向量可以从它的任何时候获取数据

Persistence: when u get your response in xml try to parse and fetch the components from it, save in a vector and persist that vector in device.You can fetch data from it any time.

文件系统 - 写你的内容在文件中,并保存在SD卡,当你想读取该文件,并使用它的内容。

File System - write your contents in a file and save in SDCard when you want read that file and use its contents.

您可以下载这本书,可以指导你顺利通过code和概念太

You can download this book that can guide you well through code and concepts too

1)http://www.freshwap.net/3a8/dl/A$p$pss+Beginning+BlackBerry+Development+Nov+2009+Pdf (不是免费的)
2)列表

1) http://www.freshwap.net/3a8/dl/Apress+Beginning+BlackBerry+Development+Nov+2009+Pdf (not free) 2) List of freely available programming books

这些书可以指导您详细根据乌拉圭回合的要求
此外ü可以搜索堆栈溢出类似问题并获得多种答案

these books can guide you in detail depending upon ur requirement Moreover u can search stack overflow for similar questions and get variety of answers

这篇关于存储XML,XML中更新记录,检索存储BB设备上的XML特定记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆