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)) πŸ¦‹