Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

xpath to check element exists

912973Feb 16 2012 — edited Feb 18 2012
Hi,

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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2012
Added on Feb 16 2012
3 comments
5,631 views