Databinding
Ukázka schématu
<xs:element name="faktura">
<xs:complexType>
<xs:sequence>
<xs:element name="odberatel" type="subjektInfoTyp" />
<xs:element name="dodavatel" type="subjektInfoTyp" />
<xs:element ref="polozka" minOccurs="1"
maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="cislo" type="xs:string" use="required" />
<xs:attribute name="vystaveni" type="xs:date" use="required" />
<xs:attribute name="splatnost" type="xs:date" use="required" />
<xs:attribute name="vystavil" type="xs:string" />
</xs:complexType>
</xs:element>
<xs:complexType name="subjektInfoTyp">
<xs:sequence>
<xs:element name="nazev" type="xs:string" />
<xs:element name="adresa" type="xs:string" />
<xs:element name="ico" type="xs:string" />
<xs:element name="dic" type="xs:string" />
</xs:sequence>
</xs:complexType>
<xs:element name="polozka">
<xs:complexType>
<xs:sequence>
<xs:element name="popis" type="xs:string" minOccurs="0" maxOccurs="1" />
<xs:element name="cena" type="xs:decimal" />
<xs:element name="dph" type="xs:decimal" />
<xs:element name="ks" type="xs:positiveInteger" minOccurs="0" maxOccurs="1" />
</xs:sequence>
</xs:complexType>
</xs:element>