Skip to content

Instantly share code, notes, and snippets.

@jefflunt
Created June 23, 2011 21:09
Show Gist options
  • Save jefflunt/1043635 to your computer and use it in GitHub Desktop.
Save jefflunt/1043635 to your computer and use it in GitHub Desktop.
Sample XML for StackOverflow question
XML response for the main grid (translationsFeed):
<?xml version='1.0' encoding='utf-8'?><rows><page>1</page><total>1</total><records>10</records><row id='2'><cell><![CDATA[2]]></cell><cell><![CDATA[6]]></cell><cell><![CDATA[EN]]></cell><cell><![CDATA[Cheese]]></cell><cell><![CDATA[It's cheesy goodness!]]></cell><cell>2011-06-20 14:53:52</cell><cell>2011-06-23 12:28:39</cell><cell><![CDATA[No]]></cell></row><row id='1'><cell><![CDATA[1]]></cell><cell><![CDATA[]]></cell><cell><![CDATA[EN]]></cell><cell><![CDATA[Hello!]]></cell><cell><![CDATA[]]></cell><cell></cell><cell></cell><cell><![CDATA[No]]></cell></row><row id='5'><cell><![CDATA[5]]></cell><cell><![CDATA[]]></cell><cell><![CDATA[EN]]></cell><cell><![CDATA[How are you feeling today?]]></cell><cell><![CDATA[]]></cell><cell></cell><cell></cell><cell><![CDATA[No]]></cell></row><row id='4'><cell><![CDATA[4]]></cell><cell><![CDATA[]]></cell><cell><![CDATA[EN]]></cell><cell><![CDATA[How much does this cost?]]></cell><cell><![CDATA[]]></cell><cell></cell><cell></cell><cell><![CDATA[No]]></cell></row><row id='8'><cell><![CDATA[8]]></cell><cell><![CDATA[]]></cell><cell><![CDATA[EN]]></cell><cell><![CDATA[Huh?]]></cell><cell><![CDATA[]]></cell><cell></cell><cell></cell><cell><![CDATA[No]]></cell></row><row id='7'><cell><![CDATA[7]]></cell><cell><![CDATA[]]></cell><cell><![CDATA[EN]]></cell><cell><![CDATA[That's a lovely bunch of coconuts you have there.]]></cell><cell><![CDATA[]]></cell><cell></cell><cell></cell><cell><![CDATA[No]]></cell></row><row id='6'><cell><![CDATA[6]]></cell><cell><![CDATA[]]></cell><cell><![CDATA[EN]]></cell><cell><![CDATA[What's the weather like today?]]></cell><cell><![CDATA[]]></cell><cell></cell><cell></cell><cell><![CDATA[No]]></cell></row><row id='3'><cell><![CDATA[3]]></cell><cell><![CDATA[]]></cell><cell><![CDATA[EN]]></cell><cell><![CDATA[Where is the bathroom?]]></cell><cell><![CDATA[]]></cell><cell></cell><cell></cell><cell><![CDATA[No]]></cell></row><row id='9'><cell><![CDATA[9]]></cell><cell><![CDATA[]]></cell><cell><![CDATA[EN]]></cell><cell><![CDATA[Where?]]></cell><cell><![CDATA[]]></cell><cell></cell><cell></cell><cell><![CDATA[No]]></cell></row><row id='10'><cell><![CDATA[10]]></cell><cell><![CDATA[]]></cell><cell><![CDATA[EN]]></cell><cell><![CDATA[Why?]]></cell><cell><![CDATA[]]></cell><cell></cell><cell></cell><cell><![CDATA[No]]></cell></row></rows>
XML response for subgrid (ajax/translations_subgrid_feed.php):
<?xml version='1.0' encoding='utf-8'?><rows><row><cell><![CDATA[]]></cell><cell><![CDATA[DE]]></cell><cell><![CDATA[N/A]]></cell></row><row><cell><![CDATA[It's cheesy goodness!]]></cell><cell><![CDATA[EN]]></cell><cell><![CDATA[No]]></cell></row><row><cell><![CDATA[Queso]]></cell><cell><![CDATA[ES]]></cell><cell><![CDATA[No]]></cell></row><row><cell><![CDATA[Fromage]]></cell><cell><![CDATA[FR]]></cell><cell><![CDATA[No]]></cell></row><row><cell><![CDATA[]]></cell><cell><![CDATA[HI]]></cell><cell><![CDATA[N/A]]></cell></row><row><cell><![CDATA[]]></cell><cell><![CDATA[IT]]></cell><cell><![CDATA[N/A]]></cell></row><row><cell><![CDATA[]]></cell><cell><![CDATA[KO]]></cell><cell><![CDATA[N/A]]></cell></row><row><cell><![CDATA[]]></cell><cell><![CDATA[PL]]></cell><cell><![CDATA[N/A]]></cell></row><row><cell><![CDATA[]]></cell><cell><![CDATA[ZH]]></cell><cell><![CDATA[N/A]]></cell></row></rows>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment