{
  "slug": "xml-formatter",
  "name": "gizza-ai/xml-formatter",
  "version": "0.1.0",
  "title": "XML Formatter — Pretty-print & minify XML — gizza.ai",
  "description": "Pretty-print or minify XML with indentation control and a well-formedness check, in your browser. Nothing is uploaded.",
  "tags": [
    "xml formatter",
    "xml beautifier",
    "pretty print xml",
    "minify xml",
    "xml validator"
  ],
  "category": "data",
  "urls": {
    "page": "https://gizza.ai/tools/xml-formatter/",
    "markdown": "https://gizza.ai/tools/xml-formatter/index.md",
    "descriptor": "https://gizza.ai/tools/xml-formatter/tool.json",
    "deep_link_example": "https://gizza.ai/tools/xml-formatter/?xml=%3Croot%3E%3Citem%3Evalue%3C%2Fitem%3E%3C%2Froot%3E&mode=pretty&indent=2"
  },
  "cli": "gizza tool xml-formatter \"<root><item>value</item></root>\"",
  "tool": {
    "description": "Pretty-print or minify XML, checking it is well-formed. mode=pretty (default) re-indents the XML with `indent` spaces per level (default 2); mode=minify strips insignificant whitespace into one line. Returns a clear error with the byte position if the XML is malformed. Runs locally — the XML never leaves the device.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "indent": {
          "description": "Spaces per indent level in pretty mode (default 2).",
          "maximum": 16,
          "minimum": 0,
          "type": "integer"
        },
        "mode": {
          "default": "pretty",
          "description": "pretty (default) indents the XML; minify strips insignificant whitespace.",
          "enum": [
            "pretty",
            "minify"
          ],
          "type": "string"
        },
        "xml": {
          "description": "The XML to format.",
          "type": "string"
        }
      },
      "required": [
        "xml"
      ],
      "type": "object"
    }
  }
}