XML Overview

Tag Structure

3XML Overview

XML files for system and device configuration contain tags (command lines) which can be used to configure one or more optiPoint phones.

3.1Tag Structure

An XML file is a text file that contains "tags" (command lines) which can be edited using a text editor. XML tags always have the same structure.

A parameter and a value is transferred for optiPoint phones. Each phone function is assigned a param- eter which in turn can have one or more values. Some parameters may be interdependent.

Example:

<Item name="admin-pwd">123456</item> A tag consists of three parts.

The first part (<Item name="admin-pwd">) specifies which parameters are transferred.

The second part (123456) defines the parameter value, in this example the administration password "123456". The third part (</Item>) completes the tag.

Indexed XML tags are the exception as they contain an index in an additional fourth part. Example:

<Item name=“function-key-def“ Index=“5“>1</Item>

This additional index, for example, specifies the number on the keypad or the value in question (in- dex="5").

3.2Structure of an XML File

An XML file always has the same structure. It starts with the following tags:

<?xml version=“1.0“ encoding=“utf-8“ ?>

This tag describes the text file language (XML version and encoding).

<Message>

<Action>WriteItems</Action>

This tag instructs the phone to process the following tags.

<ItemList>

This chapter contains a list of other configuration tags that form the main part of the XML file.

</ItemList>

</Message>

These tags complete the XML file.

A31003-J4260-M101-2-76A9, 03-2007

3-1

XML Configuration Management, Administrator Manual

Page 24
Image 24
Siemens 410 S V6.0, 420 S V6.0 manual Tag Structure, Structure of an XML File