From: Jimmy Z. <cra...@co...> - 2006-10-02 07:34:06
|
Olivia, There is a Xpath built-in function called "contains(String, stirng)" ... so the expression will become ap2.selectXPath("/CATALOG/CD[contains(TITLE ,'a')]"); We currently don't have this function implemented in version 1.6 yet. But 1.7 is likely ... Cheers, Jimmy ----- Original Message ----- From: <ol...@xt...> To: "Zhang" <jz...@xi...> Sent: Sunday, October 01, 2006 7:35 PM Subject: Using XPath > Hi Mr Zhang; > By looking at the following > ap2.selectXPath("/CATALOG/CD[TITLE=\"Sylvias Mother\"]"); > it is to match all the records with the TITLE "Sylvias Mother". > The question is, how we would write the above command or method be if we > were trying to find all the records that their TITLES contain or have for > example the letter "a" . > > Thank you > Olivia > |