class nsa_decl(gexml.Model): class meta: tagname = "nsa" namespace = "test:" namespace_prefix = "t" f1 = fields.Integer(attrname=("test:", "f1"))
class junk(gexml.Model): class meta: order_sensitive = True name = fields.String(tagname=True) notes = fields.List(fields.String(tagname="note")) amount = fields.Integer(tagname=True)
class nsc(gexml.Model): f1 = fields.Integer(tagname=("test:", "f1"))
class nsa(gexml.Model): f1 = fields.Integer(attrname=("test:", "f1"))
class bacon(gexml.Model): num_rashers = fields.Integer()
class SaneChoice(gexml.Model): item = fields.Choice(fields.String(), fields.Integer())
class person(gexml.Model): name = fields.String() age = fields.Integer()
class person(petbase): name = fields.String() age = fields.Integer() status = fields.String(tagname=("S:", "status"), required=False)
class hello(gexml.Model): recipient = fields.String() sentby = fields.String(attrname="sender") strength = fields.Integer(default=1) message = fields.String(tagname="msg")