forked from champix56/2023-05-15-xmlcv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfacturesGenFromXML.xsd
108 lines (108 loc) · 3.83 KB
/
facturesGenFromXML.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?xml version="1.0" encoding="UTF-8"?>
<!--W3C Schema generated by XMLSpy v2013 sp1 (http://www.altova.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="T_surface">
<xs:simpleContent>
<xs:extension base="xs:byte">
<xs:attribute ref="unite" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="T_nbUnit">
<xs:simpleContent>
<xs:extension base="xs:decimal">
<xs:attribute ref="typeUnit" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="T_lignes">
<xs:sequence>
<xs:element ref="ligne" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="T_ligne">
<xs:choice>
<xs:element ref="info"/>
<xs:sequence>
<xs:element ref="ref"/>
<xs:element ref="designation"/>
<xs:element ref="surface" minOccurs="0"/>
<xs:element ref="phtByUnit"/>
<xs:element ref="nbUnit"/>
<xs:element ref="stotligne"/>
</xs:sequence>
</xs:choice>
</xs:complexType>
<xs:complexType name="T_factures">
<xs:sequence>
<xs:element ref="facture" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="villeets" use="required"/>
<xs:attribute ref="rsets" use="required"/>
<xs:attribute ref="logourl" use="required"/>
<xs:attribute ref="dateeditionXML" use="required"/>
<xs:attribute ref="cpets" use="required"/>
<xs:attribute ref="adr2ets" use="required"/>
<xs:attribute ref="adr1ets" use="required"/>
</xs:complexType>
<xs:complexType name="T_facture">
<xs:sequence>
<xs:element ref="client" minOccurs="0"/>
<xs:element ref="lignes"/>
</xs:sequence>
<xs:attribute ref="type" use="required"/>
<xs:attribute ref="refdevis"/>
<xs:attribute ref="numfacture" use="required"/>
<xs:attribute ref="idclient" use="required"/>
<xs:attribute ref="datefacture" use="required"/>
</xs:complexType>
<xs:complexType name="T_destinataire">
<xs:sequence>
<xs:element ref="nom"/>
<xs:element ref="pnom" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="T_client">
<xs:sequence>
<xs:element ref="destinataire"/>
<xs:element ref="adr1"/>
<xs:element ref="adr2"/>
<xs:element ref="cp"/>
<xs:element ref="ville"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="T_adr2"/>
<xs:attribute name="villeets" type="xs:string"/>
<xs:attribute name="unite" type="xs:string"/>
<xs:attribute name="typeUnit" type="xs:string"/>
<xs:attribute name="type" type="xs:string"/>
<xs:attribute name="rsets" type="xs:string"/>
<xs:attribute name="refdevis" type="xs:string"/>
<xs:attribute name="numfacture" type="xs:string"/>
<xs:attribute name="logourl" type="xs:string"/>
<xs:attribute name="idclient" type="xs:short"/>
<xs:attribute name="datefacture" type="xs:date"/>
<xs:attribute name="dateeditionXML" type="xs:date"/>
<xs:attribute name="cpets" type="xs:int"/>
<xs:attribute name="adr2ets" type="xs:string"/>
<xs:attribute name="adr1ets" type="xs:string"/>
<xs:element name="ville" type="xs:string"/>
<xs:element name="surface" type="T_surface"/>
<xs:element name="stotligne" type="xs:decimal"/>
<xs:element name="ref" type="xs:string"/>
<xs:element name="pnom" type="xs:string"/>
<xs:element name="phtByUnit" type="xs:decimal"/>
<xs:element name="nom" type="xs:string"/>
<xs:element name="nbUnit" type="T_nbUnit"/>
<xs:element name="lignes" type="T_lignes"/>
<xs:element name="ligne" type="T_ligne"/>
<xs:element name="info" type="xs:string"/>
<xs:element name="factures" type="T_factures"/>
<xs:element name="facture" type="T_facture"/>
<xs:element name="destinataire" type="T_destinataire"/>
<xs:element name="designation" type="xs:string"/>
<xs:element name="cp" type="xs:int"/>
<xs:element name="client" type="T_client"/>
<xs:element name="adr2" type="T_adr2"/>
<xs:element name="adr1" type="xs:string"/>
</xs:schema>