Xpath Constraint

I had created a domain model with Four entities School,Parent,Kid,Nurse,and I Mentioned the Associations B/w those Entities as School------>nurse(One to Many) School------>Kid(One to Many) Parent ----->Kid(One to Many) and therefore i had created Overview and Form Pages for each and every entity, When a nurse Register into Particular school by choosing school name with the help reference selector.Once the nurse registers into school and when nurse login the immediately Nurse Dashboard will appear in that Nurse Dashboard I would like to display the details like how many Parents Enrolled to that particular school and their related kids.Can I achieve this with the help of Xpath Or Is there any other way to achieve this???
1 answers

Since pretty much the exact same question is being repeated, take a look at the answers from the previous questions:

Conditional Xpath Constraint Conditional X-path constraint