Encoding Schema and Example

Encoding Schema for the Golf Disc Application Profile

Download the schema as an XSD file

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
 <xs:element name="metadata">
 <xs:complexType>
 <xs:sequence>
 <xs:element ref="schema.manufacturer"/>
 <xs:element ref="schema.model"/>
 <xs:element ref="rtp.class" minOccurs="0"/>
 <xs:element ref="dcrtp.type.plastic" minOccurs="0"/>
 <xs:element ref="rtp.discSpeed" minOccurs="0"/>
 <xs:element ref="rtp.discGlide" minOccurs="0"/>
 <xs:element ref="rtp.discTurn" minOccurs="0"/>
 <xs:element ref="rtp.discFade" minOccurs="0"/>
 <xs:element ref="rtp.discStability" minOccurs="0"/>
 <xs:element ref="schema.weight" minOccurs="0"/>
 <xs:element ref="schema.color" maxOccurs="unbounded" minOccurs="0"/>
 <xs:element ref="schema.itemCondition" minOccurs="0"/>
 </xs:sequence>
 </xs:complexType>
 </xs:element>
 <xs:element name="schema.manufacturer">
 <xs:complexType/>
 </xs:element>
 <xs:element name="schema.model">
 <xs:complexType/>
 </xs:element>
 <xs:element name="rtp.class">
 <xs:complexType/>
 </xs:element>
 <xs:element name="dcrtp.type.plastic">
 <xs:complexType>
 <xs:attribute name="manufacturer"/>
 </xs:complexType>
 </xs:element>
 <xs:element name="rtp.discSpeed">
 <xs:complexType>
 <xs:attribute name="manufacturer"/>
 </xs:complexType>
 </xs:element>
 <xs:element name="rtp.discGlide">
 <xs:complexType>
 <xs:attribute name="manufacturer"/>
 </xs:complexType>
 </xs:element>
 <xs:element name="rtp.discTurn">
 <xs:complexType>
 <xs:attribute name="manufacturer"/>
 </xs:complexType>
 </xs:element>
 <xs:element name="rtp.discFade">
 <xs:complexType>
 <xs:attribute name="manufacturer"/>
 </xs:complexType>
 </xs:element>
 <xs:element name="rtp.discStability"> </xs:element>
 <xs:element name="schema.weight">
 <xs:complexType/>
 </xs:element>
 <xs:element name="schema.color">
 <xs:complexType/>
 </xs:element>
 <xs:element name="schema.itemCondition">
 <xs:complexType/>
 </xs:element>
</xs:schema>

Example of an XML file

The disc used to create the example XML record.

The disc used to create the example XML record.

Download the example record as an XML file

<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:noNamespaceSchemaLocation="file:////stu04-fsrv.ad.syr.edu/ryperry$/Desktop/discgolf.xsd">
 <schema.manufacturer>Westside</schema.manufacturer>
 <schema.model>Giant</schema.model>
 <rtp.class>Distance Driver</rtp.class>
 <dcrtp.type.plastic manufacturer="Westside">Tournament plastic</dcrtp.type.plastic>
 <rtp.discSpeed manufacturer="Westside">13</rtp.discSpeed>
 <rtp.discGlide manufacturer="Westside">5</rtp.discGlide>
 <rtp.discTurn manufacturer="Westside">1</rtp.discTurn>
 <rtp.discStability>Overstable</rtp.discStability>
 <rtp.discFade manufacturer="Westside">4</rtp.discFade>
 <schema.color>Red</schema.color>
 <schema.itemCondition>Slightly worn</schema.itemCondition>
</metadata>