![background image](http://html1.mh-extra.com/html/grandstream-networks/xml/xml_application-manual_2256235007.webp)
Grandstream Networks, Inc.
XML Application Guide
Page 7 of 24
Last Updated: 3/2009
Application One: XML Custom Screen Details
XML
C
USTOM
S
CREEN
S
YNTAX
XSD
FILE
<?
xml
version
=
"
1.0
"
?>
<
xs:schema
xmlns:xs
=
"
http://www.w3.org/2001/XMLSchema
"
>
<
xs:element
name
=
"
Screen
"
>
<
xs:complexType
>
<
xs:sequence
>
<
xs:element
name
=
"
IdleScreen
"
minOccurs
=
"
1
"
maxOccurs
=
"
1
"
>
<
xs:complexType
>
<
xs:sequence
>
<!--
The ShowStatusLine element is now optional and default to false. Ignored by GXP2020
-->
<
xs:element
name
=
"
ShowStatusLine
"
type
=
"
xs:boolean
"
minOccurs
=
"
0
"
maxOccurs
=
"
1
"
default
=
"
false
"
/>
<
xs:element
name
=
"
DisplayBitmap
"
type
=
"
BitmapType
"
minOccurs
=
"
0
"
maxOccurs
=
"
unbounded
"
nillable
=
"
true
"
/>
<
xs:element
name
=
"
DisplayString
"
type
=
"
StringType
"
minOccurs
=
"
0
"
maxOccurs
=
"
unbounded
"
nillable
=
"
true
"
/>
<!--
The DisplaySoftKey element apply only to GXP-2020/2010 and is ignored by GXP-2000
-->
<
xs:element
name
=
"
DisplaySoftKey
"
type
=
"
SoftKeyType
"
minOccurs
=
"
0
"
maxOccurs
=
"
12
"
nillable
=
"
true
"
/>
<!--
The UseDefaultSoftKeys element apply only to GXP-2020/2010 and is ignored by GXP-2000
If it is missing by default it is false, when it is true, any DisplaySoftKey elements
would be ignored and the system default softkeys would apply
-->
<
xs:element
name
=
"
UseDefaultSoftKeys
"
type
=
"
xs:boolean
"
minOccurs
=
"
0
"
maxOccurs
=
"
1
"
default
=
"
false
"
/>
</
xs:sequence
>
</
xs:complexType
>
</
xs:element
>
</
xs:sequence
>
</
xs:complexType
>
</
xs:element
>
<
xs:complexType
name
=
"
BitmapType
"
>
<
xs:sequence
>
<
xs:element
name
=
"
Bitmap
"
type
=
"
xs:base64Binary
"
minOccurs
=
"
1
"
maxOccurs
=
"
1
"
/>
<
xs:element
name
=
"
X
"
type
=
"
xs:integer
"
minOccurs
=
"
1
"
maxOccurs
=
"
1
"
default
=
"
0
"
/>
<
xs:element
name
=
"
Y
"
type
=
"
xs:integer
"
minOccurs
=
"
1
"
maxOccurs
=
"
1
"
default
=
"
0
"
/>
<!--
The new element displayCondition deprecates the old attribute alreg.
If displayCondition is found alreg will be ignored.
The old attribute al1reg is kept for backward compatibility
-->
<
xs:element
name
=
"
displayCondition
"
type
=
"
IdleScreenConditionType
"
minOccurs
=
"
0
"
maxOccurs
=
"
1
"
nillable
=
"
true
"
/>
</
xs:sequence
>
<!--
This attribute is deprecated, please use the displayCondition element instead
-->
<
xs:attribute
name
=
"
a1reg
"
type
=
"
xs:boolean
"
/>
</
xs:complexType
>
<
xs:complexType
name
=
"
StringType
"
>
<
xs:sequence
>
<
xs:element
name
=
"
DisplayStr
"
type
=
"
xs:string
"
minOccurs
=
"
1
"
maxOccurs
=
"
1
"
/>
<
xs:element
name
=
"
X
"
type
=
"
xs:integer
"
minOccurs
=
"
1
"
maxOccurs
=
"
1
"
default
=
"
0
"
/>
<
xs:element
name
=
"
Y
"
type
=
"
xs:integer
"
minOccurs
=
"
1
"
maxOccurs
=
"
1
"
default
=
"
0
"
/>
<!--
The new element displayCondition deprecates the old attribute alreg.
If displayCondition is found alreg will be ignored.
The old attribute al1reg is kept for backward compatibility
-->
<
xs:element
name
=
"
displayCondition
"
type
=
"
IdleScreenConditionType
"
minOccurs
=
"
0
"
maxOccurs
=
"
1
"
nillable
=
"
true
"
/>
</
xs:sequence
>
<!--
This attribute is deprecated, please use the displayCondition element instead
-->
<
xs:attribute
name
=
"
a1reg
"
type
=
"
xs:boolean
"
/>
<
xs:attribute
name
=
"
font
"
default
=
"
f8
"
>
<
xs:simpleType
>
<
xs:restriction
base
=
"
xs:string
"
>
<
xs:enumeration
value
=
"
f8
"
/>