Following is an example of an XPath expression that evaluates to either
"true" or "false":

"//strategy[2]/fxSimpleOption[productType='PUT'] and
//strategy[2]/fxSimpleOption[productType='CALL']"

I would like to be able to use dom4j's XPath support to be able to get such
a boolean result as such, in one step, rather than having to get Lists or
Elements and then testing their values, which is what I am doing at
present, something like the following:

boolean yesOrNo = myDoc.evaluate ("//strategy[2]/fxSimpleOption[productType
='PUT'] and //strategy[2]/fxSimpleOption[productType='CALL']");

Is such functionality available, and if so, what is the class.method() to
use?

Thanks,

Michael McDonough

 -------------------------------------------------------------------------- 
 Important:  This electronic mail message and any attached files contain    
 information intended for the exclusive use of the individual or entity to  
 whom it is addressed and may contain information that is proprietary,      
 privileged, confidential and/or exempt from disclosure under applicable    
 law.  If you are not the intended recipient, you are hereby notified that  
 any viewing, dissemination, distribution or copying of this communication  
 may be subject to legal restriction or sanction.  Please notify us         
 immediately of any unintended recipients and delete the original message   
 without making any copies.                                                 
 -------------------------------------------------------------------------- 






-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to