[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XPath selectNodes() returns empty List
--- "Leyzerzon, Simeon" <simeon.leyzerzon@c...> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|