Simple.xsd 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ################################################################################
  4. #
  5. # HPCC SYSTEMS software Copyright (C) 2018 HPCC Systems®.
  6. #
  7. # Licensed under the Apache License, Version 2.0 (the "License");
  8. # you may not use this file except in compliance with the License.
  9. # You may obtain a copy of the License at
  10. #
  11. # http://www.apache.org/licenses/LICENSE-2.0
  12. #
  13. # Unless required by applicable law or agreed to in writing, software
  14. # distributed under the License is distributed on an "AS IS" BASIS,
  15. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. # See the License for the specific language governing permissions and
  17. # limitations under the License.
  18. ################################################################################
  19. -->
  20. <xs:schema
  21. xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"
  22. xmlns:hpcc="something hpcc.xsd">
  23. <!--<xs:include schemaLocation="types.xsd"/>-->
  24. <xs:element name="Root" hpcc:category="root" hpcc:class="category">
  25. <xs:complexType>
  26. <xs:sequence>
  27. <xs:element name="Child1" hpcc:class="category" hpcc:itemType="child1" minOccurs="0" hpcc:displayName="Child1">
  28. <xs:complexType>
  29. <xs:sequence>
  30. <xs:element name="SubChild1" hpcc:itemType="subchild1" minOccurs="0" maxOccurs="unbounded">
  31. <xs:complexType>
  32. <xs:attribute name="attr1" type="xs:string"/>
  33. <xs:attribute name="attr2" type="xs:nonNegativeInteger"/>
  34. </xs:complexType>
  35. </xs:element>
  36. </xs:sequence>
  37. </xs:complexType>
  38. </xs:element>
  39. <xs:element name="Child2" hpcc:class="category" hpcc:itemType="child2" minOccurs="0" hpcc:displayName="Child2">
  40. <xs:complexType>
  41. <xs:sequence>
  42. <xs:element name="SubChild2" hpcc:itemType="subchild2" minOccurs="0" maxOccurs="unbounded">
  43. <xs:complexType>
  44. <xs:attribute name="attr1" type="xs:string"/>
  45. <xs:attribute name="attr2" type="xs:nonNegativeInteger"/>
  46. </xs:complexType>
  47. </xs:element>
  48. </xs:sequence>
  49. </xs:complexType>
  50. </xs:element>
  51. <xs:element name="Child3" hpcc:class="category" hpcc:itemType="child3" minOccurs="0" hpcc:displayName="Child3"/>
  52. </xs:sequence>
  53. </xs:complexType>
  54. </xs:element>
  55. </xs:schema>