SYNOPSIS

xpath [-s suffix] [-p prefix] [-q] -e query [-e query] ... [file] ...

DESCRIPTION

xpath uses the XML::XPath perl module to make XPath queries to any \s-1XML\s0 document. The XML::XPath module aims to comply exactly to the XPath specification at \*(C`http://www.w3.org/TR/xpath\*(C' and yet allows extensions to be added in the form of functions.

The script takes any number of XPath pointers and tries to apply them to each \s-1XML\s0 document given on the command line. If no file arguments are given, the query is done using \*(C`STDIN\*(C' as an \s-1XML\s0 document.

When multiple queries exist, the result of the last query is used as context for the next query and only the result of the last one is output. The context of the first query is always the root of the current document.

OPTIONS

\fB-q\fP

Be quiet. Output only errors (and no separator) on stderr.

\fB-s suffix\fP

Place \*(C`suffix\*(C' at the end of each entry. Default is a linefeed.

\fB-p prefix\fP

Place \*(C`prefix\*(C' preceding each entry. Default is nothing.

BUGS

The author of this man page is not very fluant in english. Please, send him ([email protected]) any corrections concerning this text.

See also XML::XPath\|(3pm).

RELATED TO xpath…

XML::XPath\|(3pm).

HISTORY

This module is copyright 2000 Fastnet Software Ltd. This is free software, and as such comes with \s-1NO\s0 \s-1WARRANTY\s0. No dates are used in this module. You may distribute this module under the terms of either the Gnu \s-1GPL\s0, or under specific licencing from Fastnet Software Ltd. Special free licencing consideration will be given to similarly free software. Please don't flame me for this licence - I've put a lot of hours into this code, and if someone uses my software in their product I expect them to have the courtesy to contact me first.

Full support for this module is available from Fastnet Software Ltd on a pay per incident basis. Alternatively subscribe to the Perl-XML mailing list by mailing [email protected] with the text:

        SUBSCRIBE Perl-XML

in the body of the message. There are lots of friendly people on the list, including myself, and we'll be glad to get you started.

Matt Sergeant, [email protected]

This man page was added as well as some serious modifications to the script by Fabien Ninoles <[email protected]> for the Debian Project.