Skip to content

Instantly share code, notes, and snippets.

Created July 7, 2012 03:53
Show Gist options
  • Save anonymous/3064448 to your computer and use it in GitHub Desktop.
Save anonymous/3064448 to your computer and use it in GitHub Desktop.
xml-object-kit-helloworld
from mint.xml.XmlObjectKit import make_xml_backed_class
Entity = make_xml_backed_class('entity',['name','description'],['id'])
e1 = Entity()
e1.name = "First Entity"
e1.description = "My First Entity."
e1.id = 123
e1.to_xml()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment