Next in thread →
Next in month →
Re: [xml-dev] XPath selectNodes() returns empty List
--- "Leyzerzon, Simeon" <> wrote: ... > I've been experimenting with passing different expressions in the hopes of maybe figuring this > behavior out, and found out > that this expression works: > > //decision [supporting-class='com.csfb.fao.clr.calc.rule.OutstandingComposite']/decision/@ref > > but as soon as I add text() onto it, it stops working in Java, that is > > //decision > [supporting-class='com.csfb.fao.clr.calc.rule.OutstandingComposite']/decision/@ref/text() > doesn't work. > As far as I know, attributes do not have text node, so "@ref/text()" does not seem to be valid. Isn't the test "@ref" enough for your purpose? You want to select within 'decision' nodes having 'ref' attribute, no? regards, -murat __________________________________________________________ Find your next car at http://autos.yahoo.ca
Next in thread →
Next in month →