# force the value just in case xmltodict implementation
# changes. The anna::core::functions::json2xml helper,
# assumes this prefix in order to work properly.
-result=xmltodict.parse(xml, attr_prefix='@')
+result=xmltodict.parse(xml, force_list={'avp'}, attr_prefix='@')
if parent:
result = { parent: result }