Editer un fichier xml à partir d'un bash
Résolu
Lurgee
-
Lurgee -
Lurgee -
Bonjour,
J'aimerais créer un script bash pour editer un fichier xml et remplacer le contenu d'un noeud défini par une chaine de caractère choisie au lancement du script.
Ma version de linux : CentOS 5.6
J'ai xmllint installé, mais j'ai pas l'impression que ca permette d'éditer un fichier xml...
Quelqu'un sait il comment faire?
Merci!
J'aimerais créer un script bash pour editer un fichier xml et remplacer le contenu d'un noeud défini par une chaine de caractère choisie au lancement du script.
Ma version de linux : CentOS 5.6
J'ai xmllint installé, mais j'ai pas l'impression que ca permette d'éditer un fichier xml...
Quelqu'un sait il comment faire?
Merci!
A voir également:
- Xsslt
- Comment réduire la taille d'un fichier - Guide
- Comment ouvrir un fichier epub ? - Guide
- Fichier bin - Guide
- Creer un groupe whatsapp a partir d'un autre groupe - Guide
- Fichier rar - Guide
3 réponses
Pour procéder proprement, pourquoi ne pas utiliser un processeur XSSLT comme xalan ?
Pour une introduction XSLT: http://zvon.org/xxl/XSLTutorial/Output_fre/index.html
(Google est ton ami...)
Pour xalan: http://xml.apache.org/xalan-c/
apt-cache show xalan:
<cut>
Description: XSLT processor
This is the Xalan XSLT processor from the Apache Software Foundation.
.
This package provides a command line utility to process XML files
using an XSLT stylesheet
</cut>
Johan
Pour une introduction XSLT: http://zvon.org/xxl/XSLTutorial/Output_fre/index.html
(Google est ton ami...)
Pour xalan: http://xml.apache.org/xalan-c/
apt-cache show xalan:
<cut>
Description: XSLT processor
This is the Xalan XSLT processor from the Apache Software Foundation.
.
This package provides a command line utility to process XML files
using an XSLT stylesheet
</cut>
Johan