Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

[jdom-interest] XPATH and namespace

Kevin L. Cobb

2005-09-02


Having trouble getting an XPATH expression with a namespace identifier to retreive the value in the XPATH. Example:
 
 
<ruleDef  xmlns:ilog="http://www.myrules.com">
   <ilog:conditions conditionId="condID_590" ruleId="rule_590">3</ilog:conditions>
 </ruleDef>
The XPATH expression "//ruleDef/ilog:conditions[1]/text()" does not return a result. I expect 3 to be the result.
 
 
 
Thanks,
 
Kevin
 
 

 
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.