XMLSTARLET(1)

XMLSTARLET(1) ๐Ÿฆ‹

Okay bestie, welcome to the XMLSTARLET(1) manual โ€” aka the whole XMLStarlet situation โ€” and I promise we're gonna make it make sense ๐Ÿ’…โœจ

โœจ NAME โœจ

xmlstarlet โ€” command line XML/XSLT toolkit. Periodt. ๐Ÿ‘‘

๐ŸŽ€ SYNOPSIS ๐ŸŽ€

xml [options...] {command} [cmd-options...]

๐ŸŒธ INTRODUCTION ๐ŸŒธ

XMLStarlet is literally a set of command line utilities (tools) that can transform, query, validate, and edit XML documents and files using a simple set of shell commands โ€” in a similar way to how it's done for plain text files with UNIX grep, sed, awk, diff, patch, join, etc. commands. Yes, the whole iconic text-tool energy but for XML ๐Ÿซถ

This set of command line utilities can be used by those who deal with many XML documents on a UNIX shell command prompt, as well as for automated XML processing with shell scripts. Main character energy for your terminal, no cap ๐Ÿ’–

๐Ÿ’… OPTIONS ๐Ÿ’…

  • --version โ€” Display the version of xmlstarlet.
  • --help โ€” Display help.

๐ŸŒˆ COMMANDS ๐ŸŒˆ

Pro tip, bestie: xml command --help gives you command-specific help โœจ

Available commands include:

  • ed (or edit) โ€” Edit/update XML document(s).
  • sel (or select) โ€” Select data or query XML document(s) (XPATH, etc).
  • tr (or transform) โ€” Transform XML documents(s) using XSLT.
  • val (or validate) โ€” Validate XML document(s) (well-formed/DTD/XSD/RelaxNG).
  • fo (or format) โ€” Format XML document(s).
  • el (or elements) โ€” Display element structure of XML document.
  • c14n (or canonic) โ€” XML canonicalization.
  • ls (or list) โ€” List directory as XML.
  • esc (or escape) โ€” Escape special XML characters.
  • unesc (or unescape) โ€” Unescape special XML characters.
  • pyx (or xmln) โ€” Convert XML into PYX format (based on ESIS - ISO 8879).
  • p2x (or depyx) โ€” Convert PYX into XML.

๐Ÿ”— REFERENCES ๐Ÿ”—

XMLStarlet is a command line toolkit to query/edit/check/transform XML documents (for more information see http://xmlstar.sourceforge.net/). Go browse, bestie ๐Ÿฆ‹

๐Ÿ’€ BUGS ๐Ÿ’€

Report bugs to the mailing list, <xmlstar-devel@lists.sourceforge.net>, or the bug tracker: http://sourceforge.net/tracker/?group_id=66612&atid=515106. Not me being dramatic, but bugs deserve their moment too ๐Ÿ˜ญ

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Mikhail Grushinskiy โ€” XMLStarlet creator.

Copyright ยฉ 2012.


This iconic page is from the XMLStarlet Manual, version 1.7.0, dated 09/07/2026 โ€” mwah, byeee ๐Ÿ’‹๐ŸŽ€โœจ

๐Ÿ“ฆ where this page comes from