
TANDBERG MPS API
User Guide
22
o XACLI is using indent spaces to present the data structure
o XACLI hides instance number (item number in XML) of an element if there only exist
one instance of a given element
o A status top level element starts with “*s”
Example 2.5 shows XML formatting and XACLI formatting for the same status element, IP.
Example 2.5
XML:
<Status>
<IP item="1">
<Address item="1">10.47.8.20</Address>
<SubnetMask item="1">255.255.248.0</SubnetMask>
<Gateway item="1">10.47.8.1</Gateway>
</IP>
</Status>
XACLI:
*s IP:
Address: "10.47.8.20"
SubnetMask: "255.255.248.0"
Gateway: "10.47.8.1"
*s/end
NOTE! To write a parser for the XACLI format, the parser must keep track of the levels by
counting white spaces. The indent is increased by two whitespaces for each level.
Kommentare zu diesen Handbüchern