An XML syntax to replace DTDs
Data typing of element and attribute content
<xsd:schema xmlns:xsd="http://www.w3.org/1999/XMLSchema"> <xsd:element name="SONG" type="SONGType"/> <xsd:complexType name="SONGType"> <xsd:element name="TITLE" type="xsd:string"/> <xsd:element name="COMPOSER" minOccurs="1" type="xsd:string"/> <xsd:element name="PRODUCER" minOccurs="0" type="xsd:string"/> <xsd:element name="PUBLISHER" minOccurs="0" type="xsd:string"/> <xsd:element name="LENGTH" minOccurs="0" maxOccurs="1" type="xsd:timeDuration"/> <xsd:element name="YEAR" minOccurs="0" maxOccurs="1" type="xsd:year"/> <xsd:element name="ARTIST" minOccurs="1" type="xsd:string"/> </xsd:complexType> </xsd:schema>