XSD

From ICO wiki
Revision as of 22:01, 3 April 2012 by Akaver (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="EAMK">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Freq_type">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="Name">
                <xs:complexType>
                  <xs:simpleContent>
                    <xs:extension base="xs:string">
                      <xs:attribute name="ID" type="xs:unsignedInt" use="required" />
                    </xs:extension>
                  </xs:simpleContent>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Freq_List">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="Frequencie">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Name" type="xs:string" />
                  </xs:sequence>
                  <xs:attribute name="ID" type="xs:unsignedInt" use="required" />
                  <xs:attribute name="Type_ID" type="xs:unsignedInt" use="required" />
                  <xs:attribute name="Freq" type="xs:decimal" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Members">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="Person">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Name" type="xs:string" />
                    <xs:element name="EMail" type="xs:string" />
                    <xs:element name="Models">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element maxOccurs="unbounded" name="Model">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="Category" type="xs:string" />
                                <xs:element name="Name" type="xs:string" />
                                <xs:element name="Producer" type="xs:string" />
                                <xs:element name="Electronics" type="xs:string" />
                              </xs:sequence>
                              <xs:attribute name="ID" type="xs:unsignedInt" use="required" />
                              <xs:attribute name="PT" type="xs:unsignedInt" use="required" />
                              <xs:attribute name="Freq_ID" type="xs:unsignedInt" use="optional" />
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute name="ID" type="xs:unsignedInt" use="required" />
                  <xs:attribute name="SocialCode" type="xs:unsignedLong" use="required" />
                  <xs:attribute name="Freq_ID" type="xs:unsignedInt" use="optional" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>