SF Portal
Mailing List
Download1

Laird Breyer
Download2
contents introduction man contrib related
previous next
XML-COMMAND

XML-COMMAND

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXIT STATUS
EXAMPLE
AUTHORS
SEE ALSO

NAME

xml-head − truncate the parts of an XML file.

SYNOPSIS

xml-head

[OPTION]... [FILE]

DESCRIPTION

xml-head 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.

OPTIONS

-c NUMCHARS

output the first NUMCHARS characters of each line of input data enclosed within tags. The remaining characters of each line are thrown away.

-n NUMLINES

output the first NUMLINES lines of input data enclosed within tags. The remaining lines of data are thrown away.

-t NUMTAGS

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.

EXIT STATUS

xml-head returns 0 on success, or 1 otherwise.

EXAMPLE

xml-head document.xml

AUTHORS

Laird 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:
http://www.lbreyer.com/gpl.html
http://xml-coreutils.sourceforge.net

SEE ALSO

xml-coreutils(7)


previous next
contents introduction man contrib related