<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>5 Apr 2019 03:54:15 Z</lastBuildDate><pubDate>1 Mar 2019 17:03:10 Z</pubDate><description>Y a t il une manière simple de tester l’existence d'une balise dans un XML à partir de son chemin ?&#13;
&#13;
[code:wl]&#13;
XMLRacine("DocXML1")&#13;
BOUCLE&#13;
	XMLRecherche("DocXML1","project" , XMLBalise + XMLSousElément + XMLContinue, XMLExact )&#13;
	SI XMLTrouve("DocXML1") ALORS&#13;
		&#13;
                //ici je voudrai tester l'existance de [chemin courent dans le XML /description] pour ensuite rajouter si inexistant avec XMLAjouteFils("DocXML1","description","lol")&#13;
 &#13;
                //Ceci ne marche pas !&#13;
		Info(XMLNoeudValide(XMLPosition("DocXML1")+"/description"))&#13;
		&#13;
	SINON&#13;
		SORTIR &#13;
	FIN&#13;
FIN&#13;
[/code]&#13;
&#13;
L'idée est de rajouter une [description] à tous les [projets] qui n'en possèdent pas :&#13;
&#13;
chemin/projet[...]/description</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/224356-tester-lexistence-balise-dans-xml/read.awp</link><title>Tester l’existence d'une balise dans un XML</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
