Re: Creation d'un DOM document a partir d'un string

Herve AGNOUX <[email protected]>
Newsgroups gmane.text.xml.french.tech
Organization SARL diaam informatique
Message-ID <[email protected]>
Pour que l'on puisse vous répondre, pourriez-vous nous donner un peu plus 
d'informations sur votre contexte ?... j'ai l'impression que vous travaillez 
en java, mais je ne vois pas trop à quoi correspond votre "xInterrogate" ?

Le Mardi 2 Mai 2006 15:23, [email protected] a écrit :
> 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 "[email protected]" (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 [email protected]
> (mailto:[email protected]?Subject=unsubscribe)

-- 
SARL diaam informatique - 04 77 25 43 28
Ingenierie, développements de systèmes d'information
http://www.diaam-informatique.com
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.