Jump to content

Lire et ecrire des données dans un fichier XML


Recommended Posts

Bonjour à tous,

pour les besoins de mon projets il me faudrait pouvoir lire et ecrire dans un fichier xml pour lire les informations suivantes :

<exemple nom="test" valeur="9" />

Et ma question est où stocké ces information et comment y acceder dans mon application, et comment les modifier par la suite.

Merci de votre aide.

Link to comment
Share on other sites

Salut,

La plateforme dispose des librairie sax et dom pour parser du XML.

le fichier pourra être stocker dans ton espace application - incessible depuis l'extérieur ou une autre app - ou sur l'espace de stockage "public" qu'Android nommé communément :sdcard

Voici qui devrait t'aider

http://developer.android.com/training/basics/network-ops/xml.html

http://www.androidhive.info/2011/11/android-xml-parsing-tutorial/

http://huuah.com/android-writing-and-reading-files/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...