The libxo library allows an application to generate text, XML, JSON, and HTML output using a common set of function calls. The application decides at run time which output style should be produced.
Why do you think that https://github.com/elves/elvish is a good alternative to libxo