Grandstream Networks GXP-2000 manual XML Syntax, XML Based Customizable Screen, ?xml version=1.0?

Models: GXP-2000

1 8
Download 8 pages 61.01 Kb
Page 2
Image 2
3. XML Syntax

XML Based Customizable Screen

3. XML Syntax

The XSD file tells the user what the XML file should look like. User does not need to check the structure of the file manually as this process can be automated. One such websites that does this is: http://www.xmlme.com/Validator.aspx

This paragraph will explain how to use the website mentioned above to do the syntax checking.

1.Clear the XML schema and XML document fields on the website.

2.Copy the lines below to the XSD file into the XML schema field.

3.Copy the user idle screen file into the XML document field on the website.

4.click validate

5.Verify if the validation result is successful. If not, there is structure error in the user idle screen file.

XSD file

<?xml version="1.0"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="Screen">

<xsd:complexType> <xsd:sequence>

<xsd:element name="IdleScreen" minOccurs="1" maxOccurs="1"> <xsd:complexType>
<xsd:sequence>

<xsd:element name="ShowStatusLine" type="xsd:boolean" minOccurs="1" maxOccurs="1" default="true"/>

<xsd:element name="DisplayBitmap" minOccurs="0" maxOccurs="unbounded" nillable="true"> <xsd:complexType>

<xsd:sequence>

<!--We only accept Windows Monochrome Bitmap, max 130x64 pixels encoded by base64

-->

<xsd:element name="Bitmap" type="xsd:base64Binary" minOccurs="1" maxOccurs="1"/>

<xsd:element name="X" type="xsd:integer" minOccurs="1" maxOccurs="1" default="0"/> <xsd:element name="Y" type="xsd:integer" minOccurs="1" maxOccurs="1" default="0"/>

</xsd:sequence>

<xsd:attribute name="a1reg" type="xsd:boolean"/> </xsd:complexType>

</xsd:element>

<xsd:element name="DisplayString" minOccurs="0" maxOccurs="unbounded" nillable="true"> <xsd:complexType>

<xsd:sequence>

<xsd:element name="DisplayStr" type="xsd:string" minOccurs="1" maxOccurs="1"/>

<xsd:element name="X" type="xsd:integer" minOccurs="1" maxOccurs="1" default="0"/> <xsd:element name="Y" type="xsd:integer" minOccurs="1" maxOccurs="1" default="0"/>

</xsd:sequence>

<xsd:attribute name="a1reg" type="xsd:boolean"/> <xsd:attribute name="font">

<xsd:simpleType> <xsd:restriction base="xsd:string">

<xsd:enumeration value="f8"/> <xsd:enumeration value="f10"/> <xsd:enumeration value="f13h"/> <xsd:enumeration value="f13b"/> <xsd:enumeration value="f16"/> <xsd:enumeration value="f16b"/>

<!--f18c is a 18 point Comic font --> <xsd:enumeration value="f18c"/>
</xsd:restriction> </xsd:simpleType>

</xsd:attribute>

<xsd:attribute name="halign"> <xsd:simpleType>

www.grandstream.com

Page 2
Image 2
Grandstream Networks GXP-2000 XML Syntax, XML Based Customizable Screen, ?xml version=1.0?, xsdcomplexType xsdsequence