XMLSTARLET(1)

πŸ“¦ version 1.6.1, in opensuse-leap 16.0

πŸ’– XMLSTARLET β€” the XMLStarlet Manual, but make it a group chat πŸ’–

okay bestie, sit down, hydrate, because we're about to talk about xmlstarlet β€” a command line XML/XSLT toolkit β€” and it is genuinely so iconic. πŸŽ€


✨ NAME ✨

xmlstarlet β€” command line XML/XSLT toolkit. that's it. that's the whole name. she's simple, she's powerful, she's the moment. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

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

literally just: some options, then a command, then that command's own options. lowkey the whole vibe in one line. ✨


🌸 INTRODUCTION 🌸

so XMLStarlet is a set of command line utilities (tools) β€” a whole little friend group of them 🫢 β€” and what they do is let you transform, query, validate, and edit XML documents and files using a simple set of shell commands. basically the same way you'd handle plain text files with the classic UNIX besties grep, sed, awk, diff, patch, join, etc.

who's this for? literally anyone who deals with a LOT of XML documents on the UNIX shell command prompt, and also anyone doing automated XML processing with shell scripts. if that's you, welcome home, you're a main character now. πŸ‘‘


⭐ OPTIONS ⭐

  • --version β€” shows you the version of xmlstarlet. cute little vibe check. ✨
  • --help β€” displays help. the classic "bestie explain" button. πŸ™ˆ

🌈 COMMANDS 🌈

pro tip from me to you: run xml command --help for help specific to that command. iykyk. πŸ’œ

here's everyone in the squad:

  • ed (or edit) β€” edit/update XML document(s). glow-up time. πŸ’…
  • sel (or select) β€” select data or query XML document(s) (XPATH, etc). nosy in the best way. πŸ”
  • tr (or transform) β€” transform XML document(s) using XSLT. the makeover arc. πŸ¦‹
  • val (or validate) β€” validate XML document(s) (well-formed/DTD/XSD/RelaxNG). she's checking receipts, fr fr. βœ…
  • fo (or format) β€” format XML document(s). giving tidy, giving organized. πŸŽ€
  • el (or elements) β€” display element structure of XML document. the family tree moment. 🌳
  • c14n (or canonic) β€” XML canonicalization. no cap, that's the actual name, yes it's pronounced "canonicalization" with the numbers standing in. 😭
  • ls (or list) β€” list directory as XML. your filesystem but make it XML. πŸ“
  • esc (or escape) β€” escape special XML characters. protective queen. πŸ›‘οΈ
  • unesc (or unescape) β€” unescape special XML characters. the un-protective queen, inverse behavior, we love her. πŸ’–
  • pyx (or xmln) β€” convert XML into PYX format (based on ESIS - ISO 8879). old school, still slaying. ⭐
  • p2x (or depyx) β€” convert PYX into XML. the return trip. πŸ”

🧚 REFERENCES 🧚

XMLStarlet is a command line toolkit to query/edit/check/transform XML documents. for more info, the site is http://xmlstar.sourceforge.net/. ✨


πŸ’€ BUGS πŸ’€

found a bug? report it, bestie, don't suffer in silence. you can hit up the mailing list, xmlstar-devel@lists.sourceforge.net, or use the bug tracker:

http://sourceforge.net/tracker/?group_id=66612&atid=515106


πŸ‘‘ AUTHOR πŸ‘‘

Mikhail Grushinskiy β€” XMLStarlet creator. the founder of the whole friend group. respect. 🫢


Copyright Β© 2012


and that's the whole page, bestie. this doc is Version 1.4.0, dated 08/26/2012 β€” yes she's vintage, yes she still eats. πŸŽ€βœ¨ go forth and xml sel something. πŸ’–

πŸ“¦ where this page comes from