TANDBERG D14172.01 Network Card User Manual


 
TANDBERG Gatekeeper/Border Controller API User Guide
D14172.01 page 7 of 84
Example 1.7
When using XPath it is possible to omit specifying intermediate levels in the address expression. By
using the powerful “double slash" you can address elements without having to specify the complete
path.
To show all the aliases registered on the system, the complete path would be:
Status/Registrations/Registration/Aliases/Alias
Using the “double slash" syntax this can be simplified to:
Status//Alias
Example 1.8
XPath also supports addressing by putting constraints on element attributes. The below expression
will address the Name element of all Failed zones in a system:
Status/Zones/Zone[@status="Failed"]/Name