Bonjour a tous
Je travail sur un langage dérivé du xml le rif.
Pour le traiter j ai choisi JDOM.
J'arrive a parser mon fichier xml initial et j obtient:
Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 <?xml version="1.0" encoding="UTF-8"?> <!-- Generator: reqtify --> <RIF xmlns="http://automotive-his.de/schema/rif" xmlns:rif-xhtml="http://automotive-his.de/schema/rif-xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://automotive-his.de/schema/rif rif.xsd <a href="http://automotive-his.de/schema/rif-xhtml" target="_blank">http://automotive-his.de/schema/rif-xhtml</a> rif-xhtml.xsd"> <TITLE>Design</TITLE> <COMMENT>Export of Design document</COMMENT> ... </RIF>
Mais je n arrive pas à sélectionner un élément ou son textes rattacher.
Je ne vois pas trop principe du namespace. Mais quand je travaillais juste avec un .xslt pour afficher mon xml tout les element était précéder de "RIF:".
Et le xml n'avait pas de racine commune, alors que la sa a l'aire d'etre le cas.
Ou c'est peut être ce qui pose problème.
Partager