SHARE
TWEET

Untitled

a guest Mar 21st, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  3.     <!-- Simple elementy -->
  4.     <xs:element name = "imie" type = "xs:string" />
  5.     <xs:element name = "nazwisko" type = "xs:string" />
  6.     <xs:element name = "miejscowosc" type = "xs:string" />
  7.     <xs:element name = "ulica" type = "xs:string" />
  8.     <xs:element name = "nr-domu" type = "xs:integer" />
  9.     <xs:element name = "tel-stac" type = "xs:integer" />
  10.     <xs:element name = "tel-kom" type = "xs:integer" />
  11.     <!-- Atrybuty -->
  12.     <xs:attribute name = "plec" />
  13.     <!-- Complex elementy -->
  14.     <xs:element name = "adres">
  15.         <xs:complexType>
  16.             <xs:sequence>
  17.                 <xs:element ref = "miejscowosc" />
  18.                 <xs:element ref = "ulica" />
  19.                 <xs:element ref = "nr-domu" />
  20.             </xs:sequence>
  21.         </xs:complexType>
  22.     </xs:element>
  23.     <xs:element name = "telefony">
  24.         <xs:complexType>
  25.             <xs:sequence>
  26.                 <xs:element ref = "tel-stac" />
  27.                 <xs:element ref = "tel-kom" />
  28.             </xs:sequence>
  29.         </xs:complexType>
  30.     </xs:element>
  31.     <xs:element name = "osoba">
  32.         <xs:complexType>
  33.             <xs:sequence>
  34.                 <xs:element ref = "imie" />
  35.                 <xs:element ref = "nazwisko" />
  36.                 <xs:element ref = "adres" />
  37.                 <xs:element ref = "telefony" />
  38.             </xs:sequence>
  39.             <xs:attribute ref = "plec" use = "required" />
  40.         </xs:complexType>
  41.     </xs:element>
  42.     <xs:element name = "osoby">
  43.         <xs:complexType>
  44.             <xs:sequence>
  45.                 <xs:element ref = "osoba" maxOccurs = "unbounded" />
  46.             </xs:sequence>
  47.         </xs:complexType>
  48.     </xs:element>
  49. </xs:schema>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top