Download Print this page

Xml Phonebook - Grandstream Networks XML Application Manual

Part a – application explanations part b – xml syntax, technical detail, file examples

Advertisement

Application 2: XML Phonebook Details
XML P
S
HONEBOOK
XSD
FILE
<?xml
version="1.0"?>
<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element
name="AddressBook">
<xsd:complexType>
<xsd:sequence>
<xsd:element
name="Contact" minOccurs="1"
<xsd:complexType>
<xsd:sequence>
<xsd:element
<xsd:element
<xsd:element
<xsd:complexType>
<xsd:sequence>
<xsd:element
<xsd:element
<xsd:element
<xsd:element
<xsd:element
<xsd:element
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element
<xsd:complexType>
<xsd:sequence>
<xsd:element
<xsd:element
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element
<xsd:element
<xsd:element
<xsd:element
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
E
XML P
XAMPLE
HONEBOOK
<?xml
version="1.0"?>
<AddressBook>
<Contact>
<LastName>Doe</LastName>
<FirstName>John</FirstName>
<Phone>
<phonenumber>8000</phonenumber>
<accountindex>0</accountindex>
</Phone>
</Contact>
<Contact>
<LastName>Smith</LastName>
<FirstName>Alan</FirstName>
<Phone>
<phonenumber>8001</phonenumber>
<accountindex>0</accountindex>
</Phone>
</Contact>
</AddressBook>
Grandstream Networks, Inc.
YNTAX
name="LastName" type="xsd:string"
name="FirstName" minOccurs="0" type="xsd:string"
name="Address" minOccurs="0"
name="address1" type="xsd:string" minOccurs="1"
name="address2" type="xsd:string" minOccurs="0"
name="city" type="xsd:string" minOccurs="1"
name="state" type="xsd:string" minOccurs="1"
name="zipcode" type="xsd:string" minOccurs="1"
name="country" type="xsd:string" minOccurs="1"
name="Phone">
name="phonenumber" type="xsd:string" minOccurs="1"
name="accountindex" type="xsd:integer" minOccurs="1" maxOccurs="1"
name="Email" type="xsd:string" minOccurs="0"
name="Department" type="xsd:string" minOccurs="0"
name="Company" type="xsd:string" minOccurs="0"
name="Icon" type="xsd:base64Binary" minOccurs="0"
F
ILE
XML Application Guide
maxOccurs="unbounded">
minOccurs="1"/>
nillable="true">
nillable="true"/>
nillable="true"/>
maxOccurs="1"/>
maxOccurs="1"/>
maxOccurs="1"/>
maxOccurs="1"/>
maxOccurs="1"/>
maxOccurs="1"/>
maxOccurs="1"/>
default="1"/>
nillable="true"/>
nillable="true"/>
nillable="true"/>
Page 16 of 24
Last Updated: 3/2009

Advertisement

loading