27
5. XML Structure
5.1. XML Document
XML Document is consisted of XML declaration and instance. XML Document file has ".xml" extension.
[XML Declaration]
XML version and character set are described. See below.
<?xml version="1.0" encoding="utf-8"?>
XML version must be
"1.0"
.
Character set must be
"UTF-8"
.
[XML Instance]
XML data defined by this document are described.
5.1.1. XML Schema of the phone
There are following XML schema which defines words and types, formats of all XML object.
XML schema file has ".xsd" extension and uses "http://www.w3.org/2001/XMLSchema" namespace.
These schema files should be copied onto the same folder as the XML contents folder for editing.
NO Schema File (.xsd)
Description
1
sip_phone
Common schema for all xml contents
2
value_restrict.xsd
This definition is included from sip_phone
3
common.xsd
This definition is included from sip_phone
4
Events.xsd
This definition is included from sip_phone
5
ppxml_contents.xsd
This definition is included from sip_phone
6
Key.xsd
This definition is included from sip_phone
7
Screen_object.xsd
This definition is included from sip_phone
XML Declaration
XML Instance
<?xml version="1.0" encoding="utf-8"?>
<!-- Sample screen -->
<ppxml xmlns="http://panasonic/sip_phone"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://panasonic/sip_phone.xsd sip_phone.xsd">
<Screen>
...........
</Screen>
</ppxml>
Содержание TGP600
Страница 68: ...64 End of doc ...