« Programmation XML/XPath » : différence entre les versions

Contenu supprimé Contenu ajouté
DannyS712 (discussion | contributions)
m <source> -> <syntaxhighlight> (phab:T237267)
Ligne 120 :
== Exemples ==
Soit l'arborescence suivante :
<sourcesyntaxhighlight lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<tronc nom="tronc1">
Ligne 152 :
</branche>
</tronc>
</syntaxhighlight>
</source>
 
=== Abréviations ===
Ligne 170 :
=== PHP ===
Créer le .php suivant à côté du tronc.xml publié ci-dessus.
<sourcesyntaxhighlight lang="php">
<?php
$file = 'tronc.xml';
Ligne 186 :
exit("Le fichier $file n'existe pas.");
?>
</syntaxhighlight>
</source>
 
=== {{w|eXist}} ou {{w|BaseX}} ===