OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] XPath selectNodes() returns empty List

[ Lists Home | Date Index | Thread Index ]

--- "Leyzerzon, Simeon" <simeon.leyzerzon@csfb.com> 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




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS