Skip to content

Instantly share code, notes, and snippets.

@probablycorey
Created February 18, 2010 22:31
Show Gist options
  • Save probablycorey/308159 to your computer and use it in GitHub Desktop.
Save probablycorey/308159 to your computer and use it in GitHub Desktop.
xml = {tagName = {
attrs = {attr1 = "1", attr2 = "2"},
text = "text",
child1 = {...},
child2 = {...}}
-- attrs
xml.attrs.attr1
-- text
xml.text
-- children
xml.child1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment