Aller au contenu
View in the app

A better way to browse. Learn more.

Forum de Frandroid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Enregistrer un XML

Featured Replies

Posté(e)

Bonjour,

J'ai un problème avec un parser XML sous Android.

Je charge un fichier XML ("monFichier.xml"), je le parse et je récupère les données.

Jusque là tout va bien. Le problème survient quand je veux modifier mon XML et le réenregistrer dans le fichier "monFichier.xml". Je ne sais pas comment faire pour réenregistrer mon XML.

J'utilise la classe org.w3c.dom pour parser. Au final j'ai donc un org.w3c.dom.Document que je souhaiterais réenregistrer dans mon fichier.

Comment je pourrais faire ?

Merci d'avance

Posté(e)

Bonjour,

A partir d'où lis tu ton fichier ? Si c'est à partir d'un répertoire de ton projet, dans l'APK donc, ce n'est pas possible de le ré-enregistrer puisque l'APK est une archive.

La seule possibilité est de copier ton fichier dans le répertoire data du terminal réservé à ton application ou sur la carte SD. A partir de la tu pourras exploiter ton fichier XML sans problème.

Bonne journée,

Yoann

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Account

Navigation

Rechercher

Rechercher

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.