class ListTestObject(xmlmap.XmlObject): str = xmlmap.StringListField('baz') int = xmlmap.IntegerListField('bar') letters = xmlmap.StringListField('l') empty = xmlmap.StringListField('missing') nodes = xmlmap.NodeListField('sub', SubList)
class TestObject(xmlmap.XmlObject): vals = xmlmap.IntegerListField('bar/baz') missing = xmlmap.IntegerListField('missing', required=False)