Erreur xQuery operateur "<"

Fermé
javast Messages postés 75 Date d'inscription mardi 20 avril 2010 Statut Membre Dernière intervention 14 février 2013 - 20 mai 2010 à 18:26
javast Messages postés 75 Date d'inscription mardi 20 avril 2010 Statut Membre Dernière intervention 14 février 2013 - 20 mai 2010 à 20:30
Bonjour,

j'ai un problème avec xQuery enfaite j'ai un fichier xml que je dois parcourir puis retourner tout les éléments qui ont un attribut inférieur à 4
voilà ce que j'ai fait
<resultat>
{
for $b in doc(chemin/fichier.xml)//commande
where $b[@no < 4]
return <res>{$b}</res>
}
</resultat>

il m'affiche comme erreur-->The content of elements must consist of well-formed character data or markup.

et pourtant quand je teste avec l'opérateur > ça marche bien :(
Merci

1 réponse

javast Messages postés 75 Date d'inscription mardi 20 avril 2010 Statut Membre Dernière intervention 14 février 2013 1
20 mai 2010 à 20:30
alors ?:(
0