You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by FOX GBLACK <fo...@hotmail.com> on 2003/10/30 08:27:58 UTC

multiple xpath queries ?

Hi all,

I have a two xpath queries.

1. xPathQueryForProcess = "//proceses/process[@incharge='533']";
    this query returns proceses for a person incharge(his id is 533).


2. xPathQueryForActivities = 
"//proceses/process/subprocess/activity[@incharge='533']";
    this query returns activities for a person incharge with the same id, 
533).

I need to perform both of the quries togeather on a collection or a document 
where the document looks somewhat like the following.

xml file
---------
<project>
  <process incharge=533>
     <name>something</name>
     <subprocess>
        <activity incharge="533">some activity</activity>
        <activity incharge="500">some activity</activity>
        <activity incharge="533">some activity</activity>
     <subprocess>
   </process>
  <process incharge=533>
     <name>something</name>
     <subprocess>
        <activity incharge="511">some activity</activity>
        <activity incharge="500">some activity</activity>
        <activity incharge="533">some activity</activity>
     <subprocess>
   </process>
<project>

is there any way i can join the above two xpath queries? any suggestions?

_________________________________________________________________
Hot chart ringtones and polyphonics. Go to  
http://ninemsn.com.au/mobilemania/default.asp