tessl install tessl/pypi-dicttoxml@1.7.0Converts a Python dictionary or other native data type into a valid XML string.
Agent Success
Agent success rate when using this tile
86%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.99x
Baseline
Agent success rate without this tile
87%
{
"context": "Evaluates how well the solution leverages dicttoxml to recursively serialize nested catalog mappings and sequences, honoring root naming, metadata flags, and item naming. Checks focus solely on correct parameterization of dicttoxml for the required XML outputs (bytes vs. string, type attributes, empty branches).",
"type": "weighted_checklist",
"checklist": [
{
"name": "dicttoxml core",
"description": "Uses dicttoxml.dicttoxml as the primary serializer for the nested mapping/sequence input (no manual XML assembly), ensuring recursion drives element creation.",
"max_score": 25
},
{
"name": "Root control",
"description": "Passes the provided root tag via dicttoxml's custom_root/root parameters while keeping the XML declaration enabled for default calls and suppressed only when intentionally disabled.",
"max_score": 15
},
{
"name": "Type metadata toggle",
"description": "Maps include_types to dicttoxml's attr_type flag so type attributes appear in default mode and are omitted when include_types is false.",
"max_score": 15
},
{
"name": "Item naming",
"description": "Employs dicttoxml's item_func hook to singularize list item tags (e.g., departments -> department, products -> product) instead of leaving default item names.",
"max_score": 20
},
{
"name": "Output type",
"description": "Uses dicttoxml's return_bytes option to return bytes by default and a Unicode string when as_bytes is false, without manual decoding/encoding workarounds.",
"max_score": 10
},
{
"name": "Empty branch handling",
"description": "Relies on dicttoxml's recursive handling of empty dict/list values (not filtering them out) so empty branches still produce present elements in the XML output.",
"max_score": 15
}
]
}