Bonjour,
Je possede un String dans lequel il y a du XML. Je voudrais faire un xpath
sur ce String. Pour cela, j'essaye de transformer mon String:
ByteArrayInputStream documentStream = new
ByteArrayInputStream(xmlFlux.getBytes());
NodeList phraseNodeList = xInterrogate.evaluate("phrase",documentStream);
sachant que :
xmlFlux = <phrases><phrase><code>V34490</code></phrase></phrases>
Dans ce cas precis j'obtiens:
phraseNodeList.getLength() = 0 alors qu'il devrait me retourner 1 !
Merci
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
Cette liste est a votre disposition pour discuter en francais de
tout sujet technique lie a XML.
Pour resilier votre abonnement, envoyez un message contenant
la commande "unsubscribe" a xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Received on Tue May 2 17:23:51 2006