November 2011
Intermediate to advanced
240 pages
5h 38m
English
Content preview from Building Hypermedia APIs with HTML5 and NodeBecome an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
Start your free trial


Appendix D. Maze+XML Media Type
The Maze+XML media type is an XML data format for sharing maze state information between clients and servers. It can be used to implement simple mazes, adventure games, and other related data.
The IANA Registry lists the media type identifier as
application/vnd.amundsen.maze+xml.
Elements
Below is a map of the Maze+XML media type. This map shows all of the possible elements, attributes, link relations, and data types.
It should be noted that the media type map below does not necessarily represent a valid instance of a Maze+XML document. It is only useful as a map to explore the various features of the media type:
<maze version="1.0">
<collection href="URI">
<link href="URI" rel="maze" />
<link href="URI" rel="maze" />
...
</collection>
<item href="URI" >
<link href="URI" rel="start" />
<debug>CDATA</debug>
</item>
<cell href="URI" debug="TEXT" total="NUMBER" side="NUMBER">
<link href="URI" rel="current" debug="TEXT" total="NUMBER" side="NUMBER" /> <!-- alternate 'current' link -->
<link href="URI" rel="north" />
<link href="URI" rel="south" />
<link href="URI" rel="east" />
<link href="URI" rel="west" />
<link href="URI" rel="exit" />
</cell>
<error href="URI">
<title>TEXT</title>
<code>TEXT</code>
<message>CDATA</message>
</error>
</maze>cell
The <cell> element represents ...