TANDBERG Gatekeeper/Border Controller API User Guide
1.1Introduction to XML
XML is a markup language for documents containing structured information.
All information elements in an XML document are marked by a tag and a corresponding
Example 1.1
Below is an example of how the configuration for SNMP could be represented using XML.
<Configuration> <SNMP item="1">
<Mode item="1">On</Mode>
<CommunityName item="1">public</CommunityName> <SystemContact item="1">Administrator</SystemContact> <SystemLocation item="1"></SystemLocation>
</SNMP>
</Configuration>
From the tree structure of this example we can see that Mode, CommunityName, SystemContact and SystemLocation are properties of the SNMP configuration. We can distinguish between
In the XML structure for the SNMP configuration we see that the
Example 1.2
In this example we will look at element attributes. Attributes are used to add meta information to an element. Attributes are placed within the start tag of an element and different attributes are separated by space.
An XML structure representing the status of a connection to an NTP server is shown below:
<Status>
<NTP item="1" status="Inactive"/> </Status>
We can see from the status attribute of the NTP element that the NTP connection is Inactive. This is because it has yet to be configured. There is no further relevant information when the NTP status is inactive therefore the
D14172.01 | page 4 of 84 |