Converts a Python dictionary or other native data type into a valid XML string.
86
Pending
Does it follow best practices?
Impact
86%
0.98xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"context": "Evaluates whether the solution uses dicttoxml to generate an XML audit feed with type annotations while letting the library normalize datetime and boolean values. Focuses on correct library configuration for string output and preserving the nested record structure described in the spec.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses dicttoxml",
"description": "Invokes dicttoxml.dicttoxml to convert the provided records instead of constructing XML manually.",
"max_score": 20
},
{
"name": "String output",
"description": "Configures dicttoxml return type (e.g., return_bytes=False or decoding) so build_audit_xml returns a text string as specified.",
"max_score": 10
},
{
"name": "Type attributes",
"description": "Leaves attr_type enabled so every element, including nested fields, carries a type attribute reflecting the original Python type.",
"max_score": 25
},
{
"name": "Datetime ISO",
"description": "Passes datetime objects through dicttoxml so their serialized values are ISO-8601 strings (with timezone offsets when present).",
"max_score": 20
},
{
"name": "Boolean normalization",
"description": "Provides boolean fields as bools so dicttoxml emits lowercase true/false text while retaining their type annotations.",
"max_score": 15
},
{
"name": "Structure preserved",
"description": "Feeds nested dicts and lists directly to dicttoxml so nested metadata and multiple records appear as ordered, typed subelements in the XML.",
"max_score": 10
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10