Skip to content

Instantly share code, notes, and snippets.

@kl
Created September 25, 2013 17:02
Show Gist options
  • Save kl/6702685 to your computer and use it in GitHub Desktop.
Save kl/6702685 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Event [
<!ELEMENT Event (EventName, Race*)>
<!ELEMENT Race (RaceNumber, RaceDistance, RaceComment?, Horse*)>
<!ELEMENT EventName (#PCDATA)>
<!ELEMENT RaceNumber (#PCDATA)>
<!ELEMENT RaceDistance (#PCDATA)>
<!ELEMENT RaceComment (#PCDATA)>
<!ELEMENT Horse (HorseName, Teamster, HorseComment?)>
<!ATTLIST Horse status (active | cancelled) "active">
<!ELEMENT HorseName (#PCDATA)>
<!ELEMENT Teamster (TeamsterName, TeamsterComment?)>
<!ELEMENT TeamsterName (#PCDATA)>
<!ELEMENT TeamsterComment (#PCDATA)>
<!ELEMENT HorseComment (#PCDATA)>
]>
<Event>
<EventName>United States Coast to Coast</EventName>
<Race>
<RaceNumber>48</RaceNumber>
<RaceDistance>2000</RaceDistance>
<RaceComment>The longest horse race in the world!</RaceComment>
<Horse status="active">
<HorseName>Lightning Bolt</HorseName>
<Teamster>
<TeamsterName>Rick González</TeamsterName>
</Teamster>
</Horse>
<Horse>
<HorseName>Rugged n' Ruff</HorseName>
<Teamster>
<TeamsterName>Billy Bob Johnson</TeamsterName>
<TeamsterComment>Guaranteed to be drunk.</TeamsterComment>
</Teamster>
<HorseComment>This is one mean horse!</HorseComment>
</Horse>
<Horse status="cancelled">
<HorseName>Ferdinand</HorseName>
<Teamster>
<TeamsterName>John "The Matador" Smith</TeamsterName>
</Teamster>
<HorseComment>Preferred to sit and smell the flowers.</HorseComment>
</Horse>
</Race>
</Event>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment