xml2 - convert xml documents in a flat format

2xml - convert flat format into xml

html2 - convert html documents in a flat format

2html - convert flat format into html

csv2 - convert csv files in a flat format

2csv - convert flat format into csv


<xml2|2xml|html2|2html|csv2|2csv> > outfile < infile


There are six tools. Except csv2 and and 2csv they don't take any command-line arguments. They are all simple filters which can be used to read files from standard input in one format and output it to standard output in another format.

The flat format used by the tools is specific to these tools. It is a syntax for representing structured markup in a way that makes it easy to process with line-oriented tools. The same format is used for HTML and XML; in fact, you can think of html2 as converting HTML to XHTML and running xml2 on the result; likewise 2html and 2xml. (Of course, this isn't how the implementation works.)


This program does normally not include any documentation in form of manpages. However it has a real excellent documentation online with a lot of example. In fact this manpage was based on this documentation.

Please find it on:

Examples can be found here:


xml2 was written by Dan Egnor.

This manpage was written by Patrick Schoenfeld <> for the Debian project, but may be used by others under the same terms as xml2 is distributed.


Bugs can be reported through the Debian Bug tracking system.

Latest Tech News
Your Notes

Sign in/Sign up

Signing in to our system allows you to post your contributions and vote on the contributions of others. It will also allow you to get extra perts like having your favorites in the cloud and having your persistent personal notes wherever you go. More will be added as we scale up our services.

By signing in to our system, you agree our Member Terms and Conditions

with one of the following services

Almost finished!

Please select a screen name for NET SOUP.

 Please send me news and special offers from NET SOUP.

 I have read and accept the Terms of Use.


We have no example yet for this entry

Your Name

Community Contributions and Discussions

Modify your search

View Documentation

Jobs from Indeed