Converts a Python dictionary or other native data type into a valid XML string.
86
{
"context": "Evaluates whether the solution uses dicttoxml to build the feed XML and leverages its CDATA support rather than hand-rolled XML. Focus is on correct parameterization of dicttoxml for CDATA wrapping, root naming, and output type.",
"type": "weighted_checklist",
"checklist": [
{
"name": "CDATA flag",
"description": "Uses dicttoxml.dicttoxml with cdata=True to wrap string fields so characters like < and & appear inside <![CDATA[...]]>.",
"max_score": 40
},
{
"name": "Numeric plain",
"description": "Relies on dicttoxml's default type handling so non-string values (e.g., integers) remain plain text nodes without CDATA wrapping.",
"max_score": 20
},
{
"name": "Root naming",
"description": "Passes the provided root name through dicttoxml (custom_root/root parameters) so the root element matches the requested value while preserving CDATA behavior.",
"max_score": 20
},
{
"name": "Byte output",
"description": "Returns the bytes output from dicttoxml (return_bytes=True or default) instead of converting to a string manually.",
"max_score": 10
},
{
"name": "Dicttoxml-driven",
"description": "Uses dicttoxml.dicttoxml for the overall conversion rather than constructing XML manually, keeping package-driven element naming and escaping intact.",
"max_score": 10
}
]
}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