Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- targetNamespace="http://Xml/entity"
- xmlns:tns="http://Xml/entity">
- <xsd:element name="sites">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="site">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="Title" type="xsd:string"/>
- <xsd:element name="Type" type="typeOfSite"/>
- <xsd:element name="Chars">
- <xsd:complexType>
- <xsd:choice>
- <xsd:element name="email"
- type="xsd:string"/>
- <xsd:element name="news"
- type="xsd:string"/>
- <xsd:element name="archive">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element name="link"
- type="xsd:string"/>
- <xsd:element name="pay"
- type="xsd:boolean"/>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="vote">
- <xsd:complexType>
- <xsd:sequence>
- <xsd:element
- name="some_vote" type="xsd:string"/>
- <xsd:element
- name="authorize" type="xsd:boolean"/>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- <xsd:element name="authorize"
- type="xsd:boolean"/>
- </xsd:choice>
- </xsd:complexType>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- </xsd:sequence>
- </xsd:complexType>
- </xsd:element>
- <xsd:simpleType name="typeOfSite">
- <xsd:restriction base="xsd:string">
- <xsd:enumeration value="News"/>
- <xsd:enumeration value="Advertising"/>
- <xsd:enumeration value="Mirror"/>
- <xsd:enumeration value="Portal"/>
- </xsd:restriction>
- </xsd:simpleType>
- <?xml version="1.0" encoding="UTF-8"?>
- <st3:sites xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:st3="http://nure.ua/kosenko/SummaryTask3/entity"
- xsi:schemaLocation="http://nure.ua/kosenko/SummaryTask3/entity input.xsd">
- <site>
- <title>NYTimes</title>
- <type>News</type>
- <chars>
- <email>mail@mail</email>
- <news>Good news!</news>
- <vote>
- <some_vote>a or b</some_vote>
- <authorize>false</authorize>
- </vote>
- </chars>
- <authorize>false</authorize>
- </site>
- <site>
- <title>Allo.ua</title>
- <type>Advertising</type>
- <authorize>false</authorize>
- </site>
- <site>
- <title>Free downloads</title>
- <type>Mirror</type>
- <email>mail@mail</email>
- <archive>
- <link>www.getfile.com</link>
- <pay>false</pay>
- </archive>
- <authorize>true</authorize>
- </site>
- <site>
- <title>google.com</title>
- <type>Portal</type>
- <email>mail@gmail.com</email>
- <authorize>true</authorize>
- </site>
- </sites>
Add Comment
Please, Sign In to add comment