logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

xpath - a script to query XPath statements in XML documents.

Bugs

       The author of this man page is not very fluant in english. Please, send him (fabien@tzone.org) any
       corrections concerning this text.

Description

xpath uses the XML::XPath perl module to make XPath queries to any XML document.  The XML::XPath module
       aims to comply exactly to the XPath specification at "http://www.w3.org/TR/xpath" 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 XML document given on the
       command line. If no file arguments are given, the query is done using "STDIN" as an XML 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.

Name

       xpath - a script to query XPath statements in XML documents.

Options

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

   -n
       Never use an external DTD, ie. instantiate the XML::Parser module with 'ParseParamEnt => 0'.

   -ssuffix
       Place "suffix" at the end of each entry. Default is a linefeed.

   -pprefix
       Place "prefix" preceding each entry. Default is nothing.

See Also

       XML::XPath

Synopsis

xpath[-ssuffix][-pprefix][-n][-q]-equery[-equery]...[file]...

See Also