Bonjour,
Le jeudi 06 juillet 2006 à 13:58 +0200, sjarlier@stradefi.com a écrit :
> Another question as well...:
>
> If I have this XML:
>
> <config evaluator="string-compare" condition="Function" maxId="6">
> <children>
> <child id="General Director" level="100" active="true">
> <labels/>
> <children>
> <child id="Director (Private Bank)" level="80"
> active="true">
> <labels/>
> <children>
> <child id="Director (Entreprise)"
> level="60" active="true">
> <labels/>
> <!--children>
>
> ......................................
> </children-->
> </child>
> </children>
> </child>
> </children>
> </child>
> </children>
> </config>
>
> Is it false to use this path to get the Element node Director (Private
> Bank)?
>
> String xpath = "/config/children//child[@id=' Director (Private Bank)']";
Si vous enlevez l'espace avant "Director" dans votre expression XPath,
cela devrait fonctionner :) ...
Cordialement,
Eric van der Vlist
--
GPG-PGP: 2A528005
Freelance consulting and training.
http://dyomedea.com/english/
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
-- Attached file included as plaintext by Ecartis --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQBErP5qDvn+ZCpSgAURAoBuAJ96fYrBw4np+I+WTIc++xQGajgkUQCffJHm
8+K6iyugY3Ilw90Poub6Ad4=
=ioCs
-----END PGP SIGNATURE-----
--
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 Thu Jul 6 14:13:31 2006