Converts a Python dictionary or other native data type into a valid XML string.
86
{
"context": "Evaluates whether the solution uses dicttoxml to generate XML with configurable declaration visibility, root wrapping, encoding metadata, and return type handling as described in the spec.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses dicttoxml",
"description": "Serializes payloads via dicttoxml.dicttoxml rather than manual XML construction or alternative libraries.",
"max_score": 25
},
{
"name": "Declaration toggle",
"description": "Maps the include_declaration option to dicttoxml's xml_declaration flag so the XML header appears or is suppressed exactly as requested.",
"max_score": 20
},
{
"name": "Root control",
"description": "Applies dicttoxml's root/custom_root handling to wrap output in the provided root_name or disable wrapping when wrap_root is False.",
"max_score": 20
},
{
"name": "Encoding metadata",
"description": "Sets dicttoxml's encoding and include_encoding parameters so the XML declaration uses the requested encoding value and can omit the encoding attribute when requested.",
"max_score": 20
},
{
"name": "Return type",
"description": "Uses dicttoxml's return_bytes parameter (or decodes appropriately) to support both string and bytes outputs as specified by return_bytes.",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-dicttoxmldocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10