IP Phone Administrator Guide How to Create an XML Application

Appendix G

XML Schema File

After creating an XML application for your IP phone, you can validate the XML objects using the Schema file provided in this section. This helps you find any parsing errors that may exist, and verify that your XML objects conform to the Aastra API.

Note: Aastra IP phonees do not contain validating XML parsers. There are many free XML validators available on the Web

(i.e., http://apps.gotdotnet.com/xmltools/xsdvalidator/Default.aspx) that can perform validation using the schema file.

XML Schema

<?xml version="1.0" encoding="ISO-8859-1" ?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:element name="AastraIPPhoneTextScreen"> <xs:complexType>

<xs:sequence>

<xs:element name="Title" type="xs:string" /> <xs:element name="Text"> <xs:simpleType>

<xs:restriction base="xs:string"> <xs:minLength value="1" /> <xs:maxLength value="1000" /> </xs:restriction>

</xs:simpleType>

</xs:element>

</xs:sequence>

</xs:complexType>

</xs:element>

<xs:element name="AastraIPPhoneTextMenu"> <xs:complexType>

<xs:sequence>

<xs:element name="Title" type="xs:string" />

<xs:element name="MenuItem" minOccurs="1" maxOccurs="15"> <xs:complexType>

<xs:sequence>

G-22

41-001129-00 Rev 09, Release 1.4.1

Page 492
Image 492
Aastra Telecom 480I CT manual XML Schema File