Re: utiliser Xercès pour parser un InputStream ou String?

"Jean-Marc Desprez" <[email protected]>
Newsgroups gmane.text.xml.french.tech
Message-ID <[email protected]>
Re,
Les deux solutions reviennent au même.
Soit modifier le xpath pour obtenir le noeud de type texte
Soit laisser le xpath tel quel (qui sélectionne le noeud parent du noeud
texte) et faire un getFirstChild
text() sert effectivement à selectionner un noeud de type texte.
Tu peux voir http://erwy.developpez.com/cours/langage/xpath/types/ pour les
différents type de noeud (attribut, texte, ...)

A+
2006/5/19, [email protected] <[email protected]>:
>
> Merci pour ta réponse. text()  c'est pour quoi en fait? Pour dire que le
> nœud est de type text? Mon problème venait du getNodeValue() :)
> A+
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.