<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>http://www.bricosoft.com/index.php?action=history&amp;feed=atom&amp;title=XPath</id>
	<title>XPath - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="http://www.bricosoft.com/index.php?action=history&amp;feed=atom&amp;title=XPath"/>
	<link rel="alternate" type="text/html" href="http://www.bricosoft.com/index.php?title=XPath&amp;action=history"/>
	<updated>2026-11-17T09:09:50Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>http://www.bricosoft.com/index.php?title=XPath&amp;diff=2100&amp;oldid=prev</id>
		<title>Sysop : Remplacement des balises &lt;source&gt; obsolètes par &lt;syntaxhighlight&gt; (bot)</title>
		<link rel="alternate" type="text/html" href="http://www.bricosoft.com/index.php?title=XPath&amp;diff=2100&amp;oldid=prev"/>
		<updated>2026-11-08T17:46:55Z</updated>

		<summary type="html">&lt;p&gt;Remplacement des balises &amp;lt;source&amp;gt; obsolètes par &amp;lt;syntaxhighlight&amp;gt; (bot)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 8 novembre 2026 à 17:46&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot;&gt;Ligne 38 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 38 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===tests===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===tests===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  $ curl -s &amp;quot;http://fr.wikipedia.org/w/index.php?title=Spécial:Modifications_récentes&amp;amp;feed=atom&amp;amp;limit=7&amp;quot; | xpath -q -e &amp;quot;//entry/title&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  $ curl -s &amp;quot;http://fr.wikipedia.org/w/index.php?title=Spécial:Modifications_récentes&amp;amp;feed=atom&amp;amp;limit=7&amp;quot; | xpath -q -e &amp;quot;//entry/title&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source &lt;/del&gt;lang=&quot;xml&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight &lt;/ins&gt;lang=&quot;xml&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;title&amp;gt;Universit� nationale d&amp;#039;art (Bucarest)&amp;lt;/title&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;title&amp;gt;Universit� nationale d&amp;#039;art (Bucarest)&amp;lt;/title&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;title&amp;gt;Ch�rten&amp;lt;/title&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;title&amp;gt;Ch�rten&amp;lt;/title&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l46&quot;&gt;Ligne 46 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 46 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;title&amp;gt;Ludivine Aubourg&amp;lt;/title&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;title&amp;gt;Ludivine Aubourg&amp;lt;/title&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;title&amp;gt;Django Unchained&amp;lt;/title&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;title&amp;gt;Django Unchained&amp;lt;/title&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Les axes==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Les axes==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key www_bricosoft_com-mw:diff:1.41:old-2026:rev-2100:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Sysop</name></author>
	</entry>
	<entry>
		<id>http://www.bricosoft.com/index.php?title=XPath&amp;diff=2026&amp;oldid=prev</id>
		<title>Nettoyage gabarit : Nettoyage : gabarit 2012 (widgets Twitter/Google/DISQUS morts et fichiers fantômes)</title>
		<link rel="alternate" type="text/html" href="http://www.bricosoft.com/index.php?title=XPath&amp;diff=2026&amp;oldid=prev"/>
		<updated>2026-11-03T19:56:32Z</updated>

		<summary type="html">&lt;p&gt;Nettoyage : gabarit 2012 (widgets Twitter/Google/DISQUS morts et fichiers fantômes)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 3 novembre 2026 à 19:56&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Ligne 1 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 1 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;div class=&quot;thumb tright&quot;&amp;gt;{{#widget:Twitter Search |query=#{{PAGENAME}} |title=Bricosoft.com/{{PAGENAME}} |caption=Ce que les gens disent sur {{PAGENAME}} }} &amp;lt;/div&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;XPath&amp;#039;&amp;#039;&amp;#039; est un langage de requête pour documents [[xml]]. Il permet de parcourir le [[DOM]] afin de sélectionner des noeuds(enfants et/ou parents) xml avec ou sans critères.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;XPath&amp;#039;&amp;#039;&amp;#039; est un langage de requête pour documents [[xml]]. Il permet de parcourir le [[DOM]] afin de sélectionner des noeuds(enfants et/ou parents) xml avec ou sans critères.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l50&quot;&gt;Ligne 50 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 49 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Les axes==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Les axes==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key www_bricosoft_com-mw:diff:1.41:old-1456:rev-2026:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Nettoyage gabarit</name></author>
	</entry>
	<entry>
		<id>http://www.bricosoft.com/index.php?title=XPath&amp;diff=1456&amp;oldid=prev</id>
		<title>Sysop : /* Liens */</title>
		<link rel="alternate" type="text/html" href="http://www.bricosoft.com/index.php?title=XPath&amp;diff=1456&amp;oldid=prev"/>
		<updated>2013-02-25T15:33:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Liens&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;thumb tright&amp;quot;&amp;gt;{{#widget:Twitter Search |query=#{{PAGENAME}} |title=Bricosoft.com/{{PAGENAME}} |caption=Ce que les gens disent sur {{PAGENAME}} }} &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;XPath&amp;#039;&amp;#039;&amp;#039; est un langage de requête pour documents [[xml]]. Il permet de parcourir le [[DOM]] afin de sélectionner des noeuds(enfants et/ou parents) xml avec ou sans critères.&lt;br /&gt;
&lt;br /&gt;
== exemples de syntaxe ==&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;: recupère le noeud racine et tous les sous-noeuds, càd le premier noeud juste après &amp;lt;code&amp;gt;&amp;lt;/xml&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
*&amp;lt;code&amp;gt;//fruit&amp;lt;/code&amp;gt; : recupère tous les noeuds &amp;lt;code&amp;gt;&amp;lt;/fruit&amp;gt;&amp;lt;/code&amp;gt; ou qu&amp;#039;ils se trouvent dans le document.&lt;br /&gt;
*&amp;lt;code&amp;gt;//fruit/pomme&amp;lt;/code&amp;gt; : recupère tous les noeuds &amp;lt;code&amp;gt;&amp;lt;/pomme&amp;gt;&amp;lt;/code&amp;gt; fils de &amp;lt;code&amp;gt;&amp;lt;/fruit&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
*&amp;lt;code&amp;gt;//fruit/pomme[@cultivar=&amp;#039;granny smith&amp;#039;]&amp;lt;/code&amp;gt; : recupère tous les noeuds &amp;lt;code&amp;gt;&amp;lt;/pomme&amp;gt;&amp;lt;/code&amp;gt; avec comme attribut &amp;#039;&amp;#039;cultivar&amp;#039;&amp;#039; valant &amp;#039;&amp;#039;granny smith&amp;#039;&amp;#039; fils de &amp;lt;code&amp;gt;&amp;lt;/fruit&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
==mumuse en CLI==&lt;br /&gt;
Le CLI t&amp;#039;autorise (&amp;lt;--- hahaha) de faire mumuse avec xpath et des pages ouaibes.&lt;br /&gt;
===install===&lt;br /&gt;
 $ xpath&lt;br /&gt;
 bash: /usr/bin/xpath: Aucun fichier ou dossier de ce type&lt;br /&gt;
qlb ?&lt;br /&gt;
 $ sudo aptitude install libxml-xpath-perl&lt;br /&gt;
&lt;br /&gt;
===usage===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  $ xpath&lt;br /&gt;
Usage:&lt;br /&gt;
/usr/bin/xpath [options] -e query [-e query...] [filename...]&lt;br /&gt;
&lt;br /&gt;
    If no filenams are given, supply XML on STDIN.&lt;br /&gt;
    You must provide at least one query. Each supplementary&lt;br /&gt;
    query is done in order, the previous query giving the&lt;br /&gt;
    context of the next one.&lt;br /&gt;
&lt;br /&gt;
    Options:&lt;br /&gt;
&lt;br /&gt;
    -q        quiet. Only output the resulting PATH&lt;br /&gt;
    -s suffix    use suffix instead of linefeed.&lt;br /&gt;
    -p postfix    use prefix instead of nothing.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===tests===&lt;br /&gt;
 $ curl -s &amp;quot;http://fr.wikipedia.org/w/index.php?title=Spécial:Modifications_récentes&amp;amp;feed=atom&amp;amp;limit=7&amp;quot; | xpath -q -e &amp;quot;//entry/title&amp;quot;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Universit� nationale d&amp;#039;art (Bucarest)&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Ch�rten&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Antoine Charma&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Tour de France (cyclisme)&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Amphenol socapex&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Ludivine Aubourg&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Django Unchained&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Les axes==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!syntaxe !! syntaxe abbrégée !! Notes&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;ancestor&amp;lt;/code&amp;gt;|| ||&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;ancestor-or-self&amp;lt;/code&amp;gt;|| ||&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;attribute&amp;lt;/code&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;code&amp;gt;@&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;@abc&amp;lt;/code&amp;gt; est l&amp;#039;abbrégé de &amp;lt;code&amp;gt;attribute::abc&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;child&amp;lt;/code&amp;gt;||||&amp;lt;code&amp;gt;xyz&amp;lt;/code&amp;gt; est l&amp;#039;abbrégé de &amp;lt;code&amp;gt;child::xyz&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;descendant&amp;lt;/code&amp;gt;|| ||&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;descendant-or-self&amp;lt;/code&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;code&amp;gt;//&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;//&amp;lt;/code&amp;gt; est l&amp;#039;abbrégé de &amp;lt;code&amp;gt;/descendant-or-self::node()/&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;following&amp;lt;/code&amp;gt;|| ||&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;following-sibling&amp;lt;/code&amp;gt;|| ||&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;namespace&amp;lt;/code&amp;gt;|| ||&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;parent&amp;lt;/code&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;code&amp;gt;..&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;..&amp;lt;/code&amp;gt; est l&amp;#039;abbrégé de &amp;lt;code&amp;gt;parent::node()&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;preceding&amp;lt;/code&amp;gt;|| ||&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;preceding-sibling&amp;lt;/code&amp;gt;|| ||&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;self&amp;lt;/code&amp;gt;&lt;br /&gt;
|align=&amp;quot;center&amp;quot;|&amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;.&amp;lt;/code&amp;gt; est l&amp;#039;abbrégé de &amp;lt;code&amp;gt;self::node()&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==xpath vs xquery vs xpointer vs xtireur==&lt;br /&gt;
*XPath : déplacement dans le DOM à la recherche de noeuds particuliers&lt;br /&gt;
*[[XQuery]] : propose une syntaxe proche de SQL : FLWOR (FOR, LET, WHERE, ORDER BY et RETURN)&lt;br /&gt;
*[[XPointer]] : c&amp;#039;est XPath + extensions pour retrouver une partie de document&lt;br /&gt;
*XTireur : n&amp;#039;existe pas.&lt;br /&gt;
&lt;br /&gt;
==et pour l&amp;#039;HTML ?==&lt;br /&gt;
A moins de visiter des pages webs en xml, xpath ne vous sera d&amp;#039;aucune utilité [http://stackoverflow.com/questions/12329485/why-do-xpath-querys-do-not-return-a-result-on-xhtml-pages] :&lt;br /&gt;
 $ curl -s &amp;quot;http://www.666.wf&amp;quot; | xpath -q -e &amp;quot;//header/title&amp;quot;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
error in processing external entity reference at line 1, column 89, byte 89:&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD HTML 4.01//EN&amp;quot; &amp;quot;http://www.w3.org/TR/html4/strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
========================================================================================^&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
 at /usr/lib/perl5/XML/Parser.pm line 187&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 $ curl -s &amp;quot;http://w3c.com&amp;quot; | xpath -q -e &amp;quot;//header/title&amp;quot;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
not well-formed (invalid token) at line 5, column 90, byte 214:&lt;br /&gt;
        &amp;lt;title&amp;gt;w3c.com: The Best Search Links on the Net&amp;lt;/title&amp;gt;&lt;br /&gt;
            &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;;&lt;br /&gt;
        if(self != top) top.location.href = &amp;#039;http://&amp;#039;+location.hostname+&amp;#039;/?redir=frame&amp;amp;uid=w3c512b7b2a10ccf6.48689816&amp;#039;;&lt;br /&gt;
=========================================================================================^&lt;br /&gt;
        &amp;lt;/script&amp;gt;&lt;br /&gt;
        &amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;http://return.bs.domainnamesales.com/return_js.php?d=w3c.com&amp;amp;s=1361804074&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
 at /usr/lib/perl5/XML/Parser.pm line 187&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
La soluce est d&amp;#039;utiliser un autre programme comme [[xmllint]].&lt;br /&gt;
&lt;br /&gt;
==Voir aussi==&lt;br /&gt;
*[[XSLT]]&lt;br /&gt;
&lt;br /&gt;
==Liens==&lt;br /&gt;
*http://www.w3schools.com/xpath/xpath_syntax.asp&lt;br /&gt;
&lt;br /&gt;
[[catégorie:xml]]&lt;/div&gt;</summary>
		<author><name>Sysop</name></author>
	</entry>
</feed>