]> sjero.net Git - linphone/blob - share/xml/lpconfig.xsd
Add XML2LPC lib/tool
[linphone] / share / xml / lpconfig.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
3                 targetNamespace="http://www.linphone.org/xsds/lpconfig.xsd" 
4                 xmlns:tns="http://www.linphone.org/xsds/lpconfig.xsd" 
5                 elementFormDefault="qualified">
6
7     <xs:element name="config" type="tns:LPConfig"></xs:element>
8
9     <xs:complexType name="LPConfig">
10         <xs:sequence>
11                 <xs:element name="section" type="tns:LPSection" minOccurs="0" maxOccurs="unbounded"></xs:element>
12         </xs:sequence>
13     </xs:complexType>
14     
15     <xs:complexType name="LPSection">
16         <xs:sequence>
17                 <xs:element name="entry" type="tns:LPEntry" maxOccurs="unbounded" minOccurs="0">
18                 </xs:element>
19         </xs:sequence>
20         <xs:attribute name="name" use="required">
21                 <xs:simpleType>
22                         <xs:restriction base="xs:string">
23                                 <xs:minLength value="1"></xs:minLength>
24                         </xs:restriction>
25                 </xs:simpleType>
26         </xs:attribute>
27     </xs:complexType>
28
29     <xs:complexType name="LPEntry">
30         <xs:simpleContent>
31                 <xs:extension base="xs:string">
32                         <xs:attribute name="overwrite" type="xs:boolean"
33                                 use="optional" default="false">
34                         </xs:attribute>
35                         <xs:attribute name="name" use="required">
36                                 <xs:simpleType>
37                                         <xs:restriction base="xs:string">
38                                                 <xs:minLength value="1"></xs:minLength>
39                                         </xs:restriction>
40                                 </xs:simpleType>
41                         </xs:attribute>
42                 </xs:extension>
43         </xs:simpleContent>
44     </xs:complexType>
45 </xs:schema>