{"generatedAt":"2026-08-09T03:01:44.027Z","tool":{"id":"xml-formatter","name":"XML Formatter & Viewer","description":"Format, beautify, and validate XML with syntax highlighting, tree view toggle, and minification","category":"formatter","icon":"XML","keywords":["xml","formatter","online","beautify","minify","validate","tree view","syntax highlighting","viewer"],"remoteCallable":true,"remoteMode":"dedicated_api","riskClass":"M","maxInputBytes":262144,"timeoutMs":4000,"supportsStreaming":false,"url":"/xml-formatter/","tags":["formatter"],"faqs":[{"question":"What is XML Formatter & Viewer?","answer":"XML Formatter & Viewer formats, beautifies, and validates XML documents. It features syntax highlighting, a collapsible tree view, and minification for cleaner XML output."},{"question":"How do I use XML Formatter & Viewer?","answer":"Paste your XML into the editor. The tool instantly validates the syntax, formats it with proper indentation, and lets you toggle between a code view and an interactive tree view. Copy or download the result."},{"question":"Does XML Formatter & Viewer store or send my data?","answer":"No. All processing happens entirely in your browser. Your XML data never leaves your device — nothing is sent to any server."},{"question":"Can XML Formatter & Viewer minify XML?","answer":"Yes. In addition to beautifying XML, it can minify it by removing whitespace, newlines, and indentation. This is useful for reducing file size when embedding XML in API requests or config files."}],"howTo":[{"title":"Paste your XML","description":"Copy your XML code into the textarea (minified, broken, or formatted). The tool immediately validates and formats it. Click 'Sample' for example XML."},{"title":"View formatted output","description":"Formatted XML appears in the right panel with syntax highlighting. Switch to Tree View to see nested structure visually. Errors show with line numbers."},{"title":"Format and validate","description":"Click 'Format' to beautify the XML. The validator will highlight syntax errors like unclosed tags, invalid characters, or malformed attributes."},{"title":"Copy or download output","description":"Use 'Copy to clipboard' for quick sharing, or download the formatted XML file for integration into your project."}],"agentContract":{"toolId":"xml-formatter","contractVersion":"2.0.0","remote_callable":true,"remote_mode":"dedicated_api","risk_class":"M","max_input_bytes":262144,"timeout_ms":4000,"supports_streaming":false,"preferred_surface":"dedicated_api","dedicated_api":{"baseUrl":"https://aidevhub.io/api/xml-formatter/","openapiUrl":"https://aidevhub.io/api/openapi.yaml","endpoints":[{"method":"GET","path":"/api/xml-formatter/","summary":"GET xml-formatter"},{"method":"POST","path":"/api/xml-formatter/","summary":"POST xml-formatter"}],"riskClass":"M","inputMaxBytes":262144,"timeoutMs":4000},"runtime":{"endpoint":"/api/tools/run/","methods":["GET","POST"],"queryParams":[{"name":"toolId","required":true,"description":"Tool identifier"},{"name":"a","required":true,"description":"Primary input"}],"postBodyShape":{"toolId":"string","input":"{ a, b?, c?, mode? }"},"exampleGet":"https://aidevhub.io/api/tools/run/?toolId=xml-formatter&a=...","policy":{"riskClass":"M","limit":30,"burst":10,"windowSec":60,"inputMaxBytes":262144,"timeoutMs":4000,"cacheTtlSec":0,"networkEnabled":false,"supportsStreaming":false}}},"relatedTools":[{"id":"json-formatter","name":"JSON Formatter & Validator","url":"/json-formatter/","category":"formatter"},{"id":"css-minifier","name":"CSS Minifier & Beautifier","url":"/css-minifier/","category":"formatter"},{"id":"sql-formatter","name":"SQL Formatter & Beautifier","url":"/sql-formatter/","category":"formatter"},{"id":"js-minifier","name":"JavaScript Minifier & Beautifier","url":"/js-minifier/","category":"formatter"},{"id":"log-parser","name":"Log Parser & Highlighter","url":"/log-parser/","category":"formatter"},{"id":"markdown-preview","name":"Markdown Preview","url":"/markdown-preview/","category":"formatter"}]}}