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 breakfast(gexml.Model): meals = fields.List(fields.Choice("bacon", "cereal"))
class MyStuff(gexml.Model): items = fields.List(fields.String(tagname="item"), required=False)
class SaneList(gexml.Model): item = fields.List(GreedyField(tagname="item"))
class obj(gexml.Model): items = fields.List(fields.String(tagname="item"), tagname="items")
class pets(gexml.Model): person = fields.Model() pets = fields.List("pet", minlength=1) notes = fields.List(fields.String(tagname="note"), maxlength=2) rewards = fields.List("reward", tagname="rewards", required=False)
class obj(gexml.Model): fs = fields.List(fields.String(tagname="val"))
class obj(gexml.Model): fs = fields.List(fields.Model(FF), tagname="L")
class obj(gexml.Model): fs = fields.List(fields.Model(FF))
class Notebook(gexml.Model): class meta: order_sensitive = False notes = fields.List(fields.String(tagname="note"), tagname="notes")
class obj(gexml.Model): id = fields.String() attrs = fields.List(attr)