开发者

xml file updation in android

I want to do an application in which I want to store setting of my application in xml so in need to update xml file (updating values of nodes , removing nodes,appending nodes).

In java we will update xml file using javax.xml.transform package classes but it is not available in android so is there any way to update xml

(If开发者_JAVA技巧 you know the reason of why android does't have transform package please suggest me).

Thanx in advance.


If you want to store the settings for your application you could in to the the Preferences facilities offered by Android.

The big benefit of doing it this way is that Preference screens and widgets integrate directly with the storage which makes creating a settings Activity extremely easy.


Android isn't an implementation of the JDK, so there's no guarantee that all the JDK classes will be available in Android. Apache Xalan provides an implementation of javax.xml.transform, so you might be able to simply include xalan.jar (and its dependencies) in your Android project. Until you try it out, it's hard to say one way or the other.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜