tools

XML Formatter

Pretty-print XML with consistent indentation, or minify it by removing the whitespace between tags. Elements that hold only text stay on one line, and comments, CDATA and processing instructions are kept. Malformed XML is reported with the line number rather than reshaped.

post/api/v1/tools/xml-formatter

Request

  • Base URL: https://toolforte.com
  • URL: https://toolforte.com/api/v1/tools/xml-formatter
  • Auth: HTTP bearer

Request body

xmlstring
modestring
indentinteger

Response

Successful result

okboolean

Changes

No recorded changes to this operation across all 1 revision of this API.