Skip to main content
Glama

xml_xml_to_dict

Convert XML documents to Python dictionaries for easier data processing. This tool parses XML strings into structured JSON format with attributes and text content properly organized.

Instructions

[xml] Convert an XML document to a nested Python dict (returned as JSON). Attributes use @ prefix, text content uses #text when mixed with children. Repeated tags become lists.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xml_stringYes

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/0-co/agent-friend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server