SF Portal
Mailing List
Download1

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

XML-CAT

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXIT STATUS
EXAMPLE
AUTHORS
SEE ALSO

NAME

xml-cat − concatenate XML files and print XML on the standard output.

SYNOPSIS

xml-cat

[OPTION]... [FILE]...

DESCRIPTION

xml-cat concatenates several XML files and outputs a single well formed XML file to standard output. If no FILE is given, xml-cat reads standard input.

Each input file may contain several XML documents interspersed with plain text. The plain text is ignored, and the XML documents are concatenated. If none of the input contains XML, nothing is printed.

The root tag of each input document is renamed "root" on output.

OPTIONS

EXIT STATUS

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

EXAMPLE

Display an XML file:

xml-cat recipe.xml

Combine several files:

xml-cat monday.rss tuesday.rss wednesday.rss > all.xml

The following outputs nothing since "hello" isn’t XML:

% echo "hello" | xml-cat

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