class junk(dexml2.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(dexml2.Model): meals = fields.List(fields.Choice("bacon", "cereal"))
class MyStuff(dexml2.Model): items = fields.List(fields.String(tagname="item"), required=False)
class SaneList(dexml2.Model): item = fields.List(GreedyField(tagname="item"))
class obj(dexml2.Model): items = fields.List(fields.String(tagname="item"), tagname="items")
class pets(dexml2.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(dexml2.Model): fs = fields.List(fields.String(tagname="val"))
class obj(dexml2.Model): fs = fields.List(fields.Model(FF), tagname="L")
class obj(dexml2.Model): fs = fields.List(fields.Model(FF))
class Notebook(dexml2.Model): class meta: order_sensitive = False notes = fields.List(fields.String(tagname="note"), tagname="notes")
class obj(dexml2.Model): id = fields.String() attrs = fields.List(attr)