XML-STRINGS(1)

NAME
xml-strings - print the strings of data in an XML file to the standard output.

SYNOPSIS

xml-strings [OPTION]... [ [FILE]... [:XPATH]... ]...

DESCRIPTION

xml-strings reads each FILE (or the standard input if no FILE is given) and prints the strings of textual data for nodes specified by the corresponding XPATH(s).

By default, printed strings for separate nodes are printed on separate lines; Each printed string is formatted to fit on a single line, by squeezing whitespace and removing embedded newlines; Only text (not attribute values) is printed, unless some XPATH explicitly requests an attribute value.

OPTIONS

--no-squeeze
    do not squeeze whitespace or remove embedded newlines in strings.

EXIT STATUS
xml-strings returns 0 on success, or 1 otherwise.

EXAMPLE
    xml-strings radio.rss ://title

AUTHORS

Laird A. Breyer (laird@lbreyer.com) 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)