Guest User

Untitled

a guest
Oct 19th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. <xs:complexType name="book">
  2. <xs:sequence>
  3. <xs:element name = "bookName" nillable="true" minOccurs="0">
  4. <xs:simpleType>
  5. <xs:restriction base="xs:string"
  6. </xs:restriction>
  7. </xs:simpleType>
  8. </xs:element>
  9. <xs:element name = "bookPrice" nillable="true" minOccurs="0">
  10. <xs:simpleType>
  11. <xs:restriction base="xs:decimal"
  12. </xs:restriction>
  13. </xs:simpleType>
  14. </xs:element>
  15. <xs:attribute name="bookId" type="xs:ID" use="required"/>
  16. </xs:complexType>
  17.  
  18. <xs:complexType name="book">
  19. <xs:sequence>
  20. <xs:element name = "bookName" nillable="true" minOccurs="0">
  21. <xs:simpleType>
  22. <xs:restriction base="xs:string">
  23. </xs:simpleType>
  24. <xs:unique name="uniqueBookName">
  25. <xs:selector xpath="book"/>
  26. <xs:field xpath="bookName"/>
  27. </xs:unique>
  28. </xs:element>
  29. <xs:element name = "bookPrice" nillable="true" minOccurs="0">
  30. <xs:simpleType>
  31. <xs:restriction base="xs:decimal"
  32. </xs:restriction>
  33. </xs:simpleType>
  34. </xs:element>
  35. <xs:attribute name="bookId" type="xs:ID" use="required"/>
  36. </xs:complexType>
Add Comment
Please, Sign In to add comment