---
name: "opaxmlindent"
section: "8"
platform: "linux"
package: "opa-fastfabric"
version: "10.10.3.0.11-1+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/opaxmlindent"
---

# opaxmlindent(8)

## NAME

opaxmlindent

**(Linux)** Takes well-formed XML as input, filters out comments, and generates a uniformly-indented equivalent XML file. Use opaxmlindent to reformat files for easier reading and review, also to reformat a file for easy comparison with diff.

## Syntax

opaxmlindent \[-t\|-k\] \[-i  *indent*\] \[ *input\_file*\]

## Options

- \--help

  Produces full help text.

- \-t

  Trims leading and trailing whitespace in tag contents.

- \-k

  In tags with purely whitespace that contain newlines, keeps newlines as-is. Default is to format as an empty list.

- \-i *indent*

  Sets indentation to use per level. Default is 4.

- *input\_file*

  Specifies the XML file to read. Default is stdin.
