xpath to check element exists
912973Feb 16 2012 — edited Feb 18 2012Hi,
I wanted to have a xpath expression to find whether the element 'staff' exists or not
ex:
<Updates>
<staff>
<name>xyz</name>
</staff>
<staff>
<name>xyz</name>
</staff>
<staff>
<name>xyz</name>
</staff>
<manager>
<name>y</name>
</manager>
</Updates>
i wanted to proceed the program logic, if the staff element exists in the xml document. can i have the xpath expression.