opaxmlindent(8)
β¨ NAME β¨
opaxmlindent β bestie this is the (Linux) glow-up tool for your XML π
So like, you feed it XML that's well-formed (that part is non-negotiable, she's not a miracle worker π ), and she:
- filters out all the comments (bye π)
- spits out an equivalent XML file that's uniformly indented β¨
Basically she's your reformatting bestie. Use opaxmlindent when you wanna reformat files so they're easier to read and review, and also when you wanna reformat a file so it's easy to compare with diff. No cap, that's the whole vibe check. π¦
πΈ Syntax πΈ
opaxmlindent [-t|-k] [-i indent] [ input_file]
Yes queen, that's the whole incantation. πͺ
π Options π
--helpβ she spills the full help text. All the tea, no filter. β-tβ trims the leading and trailing whitespace in tag contents. Snip snip, clean edges, periodt. βοΈ-kβ for tags that are purely whitespace and contain newlines, this keeps those newlines exactly as-is. The default behavior is to format it as an empty list instead. So like,-ksays "leave my newlines alone bestie" π₯Ί-iindent β sets how much indentation gets used per level. Default is4. Cute, cozy, four spaces of personal space. π«Άinput_fileβ the XML file to read. Default isstdin, so if you don't name a file she'll just read whatever you pipe at her. π
π Heads up babes: the input has to be well-formed XML or this whole thing falls apart. Also remember comments get filtered out β so if you had important notes in there, they're gone, no take-backs, main character exit. π
Copyright(C) 2015-2019 Intel Corporation β ok that's the legal bit, gotta respect it. π
And that's the page, bestie! This was opaxmlindent(8) from the IFSFFCLIRG (Man Page) collection β go forth and make your XML pretty. Slay, reformat, repeat. πβ¨π
π¦ where this page comes from
- centos-stream 9: opa-fastfabric 1:10.12.1.0.6-1.el9 Β· BSD or GPLv2
- debian bookworm: opa-fastfabric 10.10.3.0.11-1+b1 Β· BSD-3-clause-top
- debian trixie: opa-fastfabric 10.10.3.0.11-1+b2 Β· BSD-3-clause-top
- opensuse-leap 16.0: opa-fastfabric 10.14.4.0.20-160000.3.2 Β· BSD-3-Clause OR GPL-2.0-only
- ubuntu jammy: opa-fastfabric 10.10.3.0.11-1ubuntu1 Β· BSD-3-clause-top
- ubuntu noble: opa-fastfabric 10.10.3.0.11-1ubuntu3 Β· BSD-3-clause-top
- ubuntu questing: opa-fastfabric 10.10.3.0.11-1ubuntu3
- ubuntu resolute: opa-fastfabric 10.10.3.0.11-1ubuntu4 Β· BSD-3-clause-top
- ubuntu stonking: opa-fastfabric 10.10.3.0.11-1ubuntu5 Β· BSD-3-clause-top
- Copyright 2015-2019, Intel Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms