XMLSTARLET(1)
π 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 ofxmlstarlet. 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(oredit) β edit/update XML document(s). glow-up time. πsel(orselect) β select data or query XML document(s) (XPATH, etc). nosy in the best way. πtr(ortransform) β transform XML document(s) using XSLT. the makeover arc. π¦val(orvalidate) β validate XML document(s) (well-formed/DTD/XSD/RelaxNG). she's checking receipts, fr fr. βfo(orformat) β format XML document(s). giving tidy, giving organized. πel(orelements) β display element structure of XML document. the family tree moment. π³c14n(orcanonic) β XML canonicalization. no cap, that's the actual name, yes it's pronounced "canonicalization" with the numbers standing in. πls(orlist) β list directory as XML. your filesystem but make it XML. πesc(orescape) β escape special XML characters. protective queen. π‘οΈunesc(orunescape) β unescape special XML characters. the un-protective queen, inverse behavior, we love her. πpyx(orxmln) β convert XML into PYX format (based on ESIS - ISO 8879). old school, still slaying. βp2x(ordepyx) β 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 π
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
- opensuse-leap 16.0: xmlstarlet 1.6.1-160000.2.2 Β· MIT
- opensuse-leap 16.0: xmlstarlet 1.6.1-160000.2.2 Β· MIT
- opensuse-leap 16.0: xmlstarlet 1.6.1-160000.2.2 Β· MIT
- opensuse-leap 16.0: xmlstarlet 1.6.1-160000.2.2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms