>_ IzzyLab

Topic breakdown

xmllint --format pretty-prints: it adds line breaks and indents by nesting level, leaving the markup semantically the same. It is the flip side of "minification" — handy for reading and reviewing machine-generated or single-line configs. The indent width is controlled by the XMLLINT_INDENT variable (two spaces by default). Formatting does not touch the text content of nodes, only the whitespace between tags, so the document's meaning is preserved.

What's checked

  1. result is valid XML
  2. multi-line with indentation
  3. content unchanged

What it looks like