TANDBERG D14172.01 manual Example, Using the “double slash syntax this can be simplified to

Models: D14172.01

1 84
Download 84 pages 8.98 Kb
Page 7
Image 7
Using the “double slash" syntax this can be simplified to:

TANDBERG Gatekeeper/Border Controller API User Guide

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

D14172.01

page 7 of 84

Page 7
Image 7
TANDBERG D14172.01 manual Example, Using the “double slash syntax this can be simplified to