XSD: Difference between revisions
From ICO wiki
Jump to navigationJump to search
Created page with '<source lang="xml"> <?xml version="1.0" encoding="utf-8"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema…' |
No edit summary |
||
Line 27: | Line 27: | ||
<xs:sequence> | <xs:sequence> | ||
<xs:element name="Name" type="xs:string" /> | <xs:element name="Name" type="xs:string" /> | ||
</xs:sequence> | </xs:sequence> | ||
<xs:attribute name="ID" type="xs:unsignedInt" use="required" /> | <xs:attribute name="ID" type="xs:unsignedInt" use="required" /> | ||
<xs:attribute name="Type_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:complexType> | ||
</xs:element> | </xs:element> | ||
Line 50: | Line 50: | ||
<xs:complexType> | <xs:complexType> | ||
<xs:sequence> | <xs:sequence> | ||
<xs:element name="Category" type="xs:string" /> | |||
<xs:element name="Name" type="xs:string" /> | <xs:element name="Name" type="xs:string" /> | ||
<xs:element name="Producer" type="xs:string" /> | <xs:element name="Producer" type="xs:string" /> | ||
<xs:element name="Electronics" type="xs:string" /> | <xs:element name="Electronics" type="xs:string" /> | ||
</xs:sequence> | </xs:sequence> | ||
<xs:attribute name="ID" type="xs:unsignedInt" use="required" /> | <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:complexType> | ||
</xs:element> | </xs:element> | ||
Line 67: | Line 65: | ||
</xs:sequence> | </xs:sequence> | ||
<xs:attribute name="ID" type="xs:unsignedInt" use="required" /> | <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:complexType> | ||
</xs:element> | </xs:element> |
Latest revision as of 22:01, 3 April 2012
<?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>