Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <zamowienie data_przyjecia="2014-10-20">
- <wyslac_do kraj="PL">
- <osoba>
- Krzysztof Nowak
- </osoba>
- <ulica>
- Niepodleglosci
- </ulica>
- <numer>
- 799A
- </numer>
- <kod_pocztowy>81-100</kod_pocztowy>
- <miasto>
- Sopot
- </miasto>
- <wojewodztwo>pomorskie</wojewodztwo>
- </wyslac_do>
- <rachunek kraj="PL">
- <osoba>
- Krzysztof Nowak
- </osoba>
- <ulica>
- Niepodleglosci
- </ulica>
- <numer>
- 799A
- </numer>
- <kod_pocztowy>81-100</kod_pocztowy>
- <miasto>
- Sopot
- </miasto>
- </rachunek>
- <komentarz>Pilnie potrzebne</komentarz>
- <towary>
- <towar kod_produktu="XYZ-123-345">
- <nazwa_towaru>Silnik iFlight 2216</nazwa_towaru>
- <ilosc>
- 6
- </ilosc>
- <cena_jednostkowa>
- 58.50
- </cena_jednostkowa>
- <producent_towaru>
- Boening Company
- </producent_towaru>
- </towar>
- <towar kod_produktu="ABX-691-696">
- <nazwa_towaru>Kontroler ESC 30A iFlight</nazwa_towaru>
- <ilosc>
- 24
- </ilosc>
- <cena_jednostkowa>
- 62.00
- </cena_jednostkowa>
- <producent_towaru>
- Airbus
- </producent_towaru>
- </towar>
- <towar kod_produktu="SEG-321-231">
- <nazwa_towaru>
- Śrubka 25mm
- </nazwa_towaru>
- <ilosc>
- 10
- </ilosc>
- <cena_jednostkowa>
- 0.20
- </cena_jednostkowa>
- <producent_towaru>
- PSB
- </producent_towaru>
- <data_realizacji>
- 2014-10-21
- </data_realizacji>
- </towar>
- </towary>
- </zamowienie>
- SCHEMA
- <?xml version="1.0" encoding="utf-8"?>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <xsd:annotation>
- <xsd:documentation xml:lang="pl">
- XML Schema do pliku zamowienia.
- </xsd:documentation>
- </xsd:annotation>
- <xsd:element name="zamowienie" type="zamowienie_typ"/>
- <xsd:element name="komentarz" type="xsd:string"/>
- <xsd:complexType name="zamowienie_typ">
- <xsd:sequence>
- <xsd:element name="wyslac_do" type="wysylka_typ"/>
- <xsd:element name="rachunek" type="adres_typ"/>
- <xsd:element ref="komentarz" minOccurs="0"/>
- <xsd:element name="towary" type="towary_typ"/>
- </xsd:sequence>
- <xsd:attribute name="data_przyjecia" type="xsd:date"/>
- </xsd:complexType>
- <xsd:complexType name="wysylka_typ">
- <xsd:sequence>
- <xsd:element name="osoba" type="xsd:string"/>
- <xsd:element name="ulica" type="xsd:string"/>
- <xsd:element name="numer" type="xsd:string"/>
- <xsd:element name="kod_pocztowy" type="kod_pocztowy_typ"/>
- <xsd:element name="miasto" type="xsd:string"/>
- <xsd:element name="wojewodztwo" type="wojewodztwo_typ"/>
- </xsd:sequence>
- <xsd:attribute name="kraj" type="xsd:NMTOKEN" fixed="PL"/>
- </xsd:complexType>
- <xsd:complexType name="adres_typ">
- <xsd:sequence>
- <xsd:element name="osoba" type="xsd:string"/>
- <xsd:element name="ulica" type="xsd:string"/>
- <xsd:element name="numer" type="xsd:string"/>
- <xsd:element name="kod_pocztowy" type="kod_pocztowy_typ"/>
- <xsd:element name="miasto" type="xsd:string"/>
- </xsd:sequence>
- <xsd:attribute name="kraj" type="xsd:NMTOKEN" fixed="PL"/>
- </xsd:complexType>
- <xsd:complexType name="towary_typ">
- <xsd:sequence>
- <xsd:element name="towar" minOccurs="0" maxOccurs="unbounded">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="nazwa_towaru" type="nazwa_typ"/>
- <xsd:element name="ilosc" type="xsd:decimal"/>
- <xsd:element name="cena_jednostkowa" type="cena_typ"/>
- <xsd:element name="producent_towaru" type="xsd:string"/>
- <xsd:element name="data_realizacji" type="xsd:date" minOccurs="0"/>
- </xsd:sequence>
- <xsd:attribute name="kod_produktu" type="kod_produktu_typ"/>
- </xsd:complexType>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- <xsd:simpleType name="kod_pocztowy_typ">
- <xsd:restriction base="xsd:string">
- <xsd:pattern value="\d{2}-\d{3}"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="cena_typ">
- <xsd:restriction base="xsd:double">
- <xsd:minExclusive value="0"/>
- <xsd:maxExclusive value="10000"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="nazwa_typ">
- <xsd:restriction base="xsd:string">
- <xsd:minLength value="3"/>
- <xsd:maxLength value="30"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="kod_produktu_typ">
- <xsd:restriction base="xsd:string">
- <xsd:pattern value="[A-Z]{3}-\d{3}-\d{3}"/>
- </xsd:restriction>
- </xsd:simpleType>
- <xsd:simpleType name="wojewodztwo_typ">
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="dolnośląskie"/>
- <xsd:enumeration value="kujawsko-pomorskie"/>
- <xsd:enumeration value="lubelskie"/>
- <xsd:enumeration value="lubuskie"/>
- <xsd:enumeration value="łódzkie"/>
- <xsd:enumeration value="małopolskie"/>
- <xsd:enumeration value="mazowieckie"/>
- <xsd:enumeration value="opolskie"/>
- <xsd:enumeration value="podkarpackie"/>
- <xsd:enumeration value="podlaskie"/>
- <xsd:enumeration value="pomorskie"/>
- <xsd:enumeration value="śląskie"/>
- <xsd:enumeration value="świętokrzyskie"/>
- <xsd:enumeration value="warmińsko-mazurskie"/>
- <xsd:enumeration value="wielkopolskie"/>
- <xsd:enumeration value="zachodniopomorskie"/>
- </xsd:restriction>
- </xsd:simpleType>
- </xsd:schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement