Thanks John. I got it working. Is there any good tutorials for xPath explaining problems like this?
Becaz as far as I hav searched I only got landed with tutorials explaining xPath with XSL using IF, FOR,... But I want to have tutorials on xPath to be used along with XML databases. -Sankaran. -----Original Message----- From: John Merrells [mailto:[EMAIL PROTECTED] Sent: Monday, May 05, 2003 8:17 PM To: [EMAIL PROTECTED] Subject: Re: Need help in xPath On Monday, May 5, 2003, at 07:09 AM, sankara wrote: > I am having a XML document like this: > <?xml version="1.0"?> > <id value="229"> > <objecttype>57</objecttype> > <name>File 1</name> > <createdby>xxx</createdby> > <createdon>05-03-2003</createdon> > <modifiedby>zzz</modifiedby> > <modifiedon>05-03-2003</modifiedon> > <expirydate /> > <deleted /> > <active>N<active/> > <searchable /> > <checkedout>n</checkedout> > <checkedoutto>noone</checkedoutto> > </id> > > What is the xPath query for selecting XML documents with > objecttype as 57 and active as Y ? > One way would be... /id[objecttype=57 and active='Y'] John Berkeley DB XML, http://www.sleepycat.com