Skip to content

Instantly share code, notes, and snippets.

@ahonor
Created August 1, 2012 18:49
Show Gist options
  • Save ahonor/3229739 to your computer and use it in GitHub Desktop.
Save ahonor/3229739 to your computer and use it in GitHub Desktop.
Yana XML API output
## XML Format
<yana>
<result (success|error="true") apiversion="X">?
(
<error>?
<message>string</message>
</error>
|
<success>?
<message>string</message>
</success>
)
</result>
<Link rel="string" mimetype="string" href="Url" name="string"? />*
<attributes>?
<attribute name="string" filter="filter" id="string"?
description="string"? required="true|false"?/>*
</attributes>
<types>?
<type name="string" id="string"? >*
<description>string?</description>?
<image>string</image>?
<attributes>?
<attribute .../>*
</attributes>
<relationships>?
<relationship name="string" child="string" childId="string"? />*
</relationships>
<Link rel="string" mimetype="string" href="Url" name="string"? />*
</type>
</types>
<nodes>?
<node name="string" id="string"? type="string" typeId="string"? tags="string">*
<description>string?</description>?
<attributes>
<attribute .../>*
</attributes>
<children>?
<node name="string" type="string" id="string"? tags="string"? />*
</children>
<Link rel="string" mimetype="string" href="Url" name="string"? />*
</node>
</nodes>
</yana>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment