Guest User

Untitled

a guest
Dec 15th, 2017
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  3. targetNamespace="http://Xml/entity"
  4. xmlns:tns="http://Xml/entity">
  5. <xsd:element name="sites">
  6. <xsd:complexType>
  7. <xsd:sequence>
  8. <xsd:element name="site">
  9. <xsd:complexType>
  10. <xsd:sequence>
  11. <xsd:element name="Title" type="xsd:string"/>
  12. <xsd:element name="Type" type="typeOfSite"/>
  13. <xsd:element name="Chars">
  14. <xsd:complexType>
  15. <xsd:choice>
  16. <xsd:element name="email"
  17. type="xsd:string"/>
  18. <xsd:element name="news"
  19. type="xsd:string"/>
  20. <xsd:element name="archive">
  21. <xsd:complexType>
  22. <xsd:sequence>
  23. <xsd:element name="link"
  24. type="xsd:string"/>
  25. <xsd:element name="pay"
  26. type="xsd:boolean"/>
  27. </xsd:sequence>
  28. </xsd:complexType>
  29. </xsd:element>
  30. <xsd:element name="vote">
  31. <xsd:complexType>
  32. <xsd:sequence>
  33. <xsd:element
  34. name="some_vote" type="xsd:string"/>
  35. <xsd:element
  36. name="authorize" type="xsd:boolean"/>
  37. </xsd:sequence>
  38. </xsd:complexType>
  39. </xsd:element>
  40. <xsd:element name="authorize"
  41. type="xsd:boolean"/>
  42. </xsd:choice>
  43. </xsd:complexType>
  44. </xsd:element>
  45. </xsd:sequence>
  46. </xsd:complexType>
  47. </xsd:element>
  48. </xsd:sequence>
  49. </xsd:complexType>
  50. </xsd:element>
  51. <xsd:simpleType name="typeOfSite">
  52. <xsd:restriction base="xsd:string">
  53. <xsd:enumeration value="News"/>
  54. <xsd:enumeration value="Advertising"/>
  55. <xsd:enumeration value="Mirror"/>
  56. <xsd:enumeration value="Portal"/>
  57. </xsd:restriction>
  58. </xsd:simpleType>
  59.  
  60. <?xml version="1.0" encoding="UTF-8"?>
  61.  
  62. <st3:sites xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  63. xmlns:st3="http://nure.ua/kosenko/SummaryTask3/entity"
  64. xsi:schemaLocation="http://nure.ua/kosenko/SummaryTask3/entity input.xsd">
  65. <site>
  66. <title>NYTimes</title>
  67. <type>News</type>
  68. <chars>
  69. <email>mail@mail</email>
  70. <news>Good news!</news>
  71. <vote>
  72. <some_vote>a or b</some_vote>
  73. <authorize>false</authorize>
  74. </vote>
  75. </chars>
  76. <authorize>false</authorize>
  77. </site>
  78. <site>
  79. <title>Allo.ua</title>
  80. <type>Advertising</type>
  81. <authorize>false</authorize>
  82. </site>
  83. <site>
  84. <title>Free downloads</title>
  85. <type>Mirror</type>
  86. <email>mail@mail</email>
  87. <archive>
  88. <link>www.getfile.com</link>
  89. <pay>false</pay>
  90. </archive>
  91. <authorize>true</authorize>
  92. </site>
  93. <site>
  94. <title>google.com</title>
  95. <type>Portal</type>
  96. <email>mail@gmail.com</email>
  97. <authorize>true</authorize>
  98. </site>
  99. </sites>
Add Comment
Please, Sign In to add comment