TANDBERG MPS API
User Guide
Example 1.8
XPath also supports addressing by putting constraints on element attributes. Let’s go back to the Call element in Example 1.2. The below expression will address the CallRate element of all Synced calls in a system:
Status/Call[@status=”Synced”]/CallRate
To add more constraints on element attributes, XPath supports boolean expressions. To address all Synced H323 calls in a system, the following expression can be used: Status/Call[@status=”Synced” AND @protocol=”H323”]/CallRate
6