− truncate the parts of an XML file.
prints to standard output an XML file which is a truncated
form of FILE, or the standard input. xml-head can
limit the number of tags in the document, or the amount of
data enclosed within tags, such as the length or number of
textual lines, or combinations thereof.
By default, the
number of tags is limited to 10.
output the first NUMCHARS
characters of each line of input data enclosed within tags.
The remaining characters of each line are thrown away.
output the first NUMLINES lines
of input data enclosed within tags. The remaining lines of
data are thrown away.
output the first NUMTAGS tags
in the input. Remaining tags are thrown away, but all open
tags are closed to ensure a well formed document.
returns 0 on success, or 1 otherwise.
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: