Re: xpath...

Eric van der Vlist <[email protected]>
Newsgroups gmane.text.xml.french.tech
Organization Dyomedea (http://dyomedea.com)
Message-ID <[email protected]>
Bonjour,
Le jeudi 06 juillet 2006 à 13:58 +0200, [email protected] 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-----
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.