− interactively display an XML file on a terminal.
is a pager similar to less(1), but designed to
display XML files exclusively. The input file is parsed
on-the-fly, and can be displayed with colour coding, and
folded/reformatted on demand. If no input file is given, the
standard input is read.
Folding can be
used to quickly understand the general form of a document,
by altering the indentation pattern of the currently
displayed page. Other useful operations include word
wrapping long lines, and showing/hiding attributes.
does not have to read the entire FILE before rendering
begins, so it should be efficient for large input files
provided that the chosen folding method allows it.
combinations recognized by xml-less are modeled on
those of less(1), with some extensions: folding is
controlled by tab key, and attributes, colours and wordwrap
are chosen with the a, c and w keys respectively. The help
page is accessed using the H key.
returns 0 on success, or 1 otherwise.
xml-cat bigfile.xml | xml-grep ’abc’ | xml-less
not work yet.
A. Breyer is the original author of this software. The
source code (GPLv3 or later) for the latest version is
available at the following locations: