XML2(1)
π XML2(1) π
okay bestie, welcome to the General Commands Manual entry for xml2! π this page is about the little flat-format converter tools, and I am obsessed with how clean they are β¨
π NAME π
xml2- turns xml docs into the flat format π¦2xml- turns the flat format back into xml πΈhtml2- turns html docs into the flat format π2html- turns the flat format back into html β¨csv2- turns csv files into the flat format π2csv- turns the flat format back into csv π
π§ SYNOPSIS π§
<xml2|2xml|html2|2html|csv2|2csv> > outfile < infile
π DESCRIPTION π
okay so there are six tools total π«Ά Except csv2 and 2csv, they don't take any command-line arguments. no cap, they're all simple filters, which means they read stuff from standard input in one format and spit it out to standard output in another format. It's giving clean pipeline energy π₯
The flat format these tools use is specific to these tools. It's a way of writing structured markup so it's super easy to process with line-oriented tools, and that's lowkey iconic π The same format works for HTML and XML too. Honestly, you can think of html2 as converting HTML to XHTML and then running xml2 on the result, and likewise 2html and 2xml π
(Of course, this isn't how the implementation actually works π)
πΈ SEE ALSO πΈ
This program doesn't normally come with manpages, but it has a really excellent online documentation with a ton of examples β¨ Honestly this manpage was based on that documentation, so go check it out!
Find the docs here:
http://dan.egnor.name/xml2/ref
And the examples live here:
http://dan.egnor.name/xml2/examples
π¦ AUTHOR π¦
xml2 was written by Dan Egnor, the real main character π
This manpage was written by Patrick Schoenfeld <schoenfeld@in-medias-res.com> for the Debian project, but it can be used by others under the same terms that xml2 is distributed under π«Ά
π BUGS π
Bugs can be reported through the Debian Bug tracking system. π
Bye bestie, go convert something cute ππ (7h february 2008, XML2(1)) π¦
π¦ where this page comes from
- debian bookworm: xml2 0.5-4
- debian trixie: xml2 0.5-5
- ubuntu jammy: xml2 0.5-4build1
- ubuntu noble: xml2 0.5-4build1
- ubuntu questing: xml2 0.5-5build1
- ubuntu resolute: xml2 0.5-6
- ubuntu stonking: xml2 0.5-6
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms