Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xpath(1p) [osx man page]

XPATH(1p)						User Contributed Perl Documentation						 XPATH(1p)

NAME
xpath - a script to query XPath statements in XML documents. 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 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. OPTIONS
-q Be quiet. Output only errors (and no separator) on stderr. -s suffix Place "suffix" at the end of each entry. Default is a linefeed. -p prefix Place "prefix" preceding each entry. Default is nothing. BUGS
The author of this man page is not very fluant in english. Please, send him (fabien@tzone.org) any corrections concerning this text. See also XML::XPath(3pm). SEE ALSO
XML::XPath(3pm). HISTORY
This module is copyright 2000 Fastnet Software Ltd. This is free software, and as such comes with NO WARRANTY. No dates are used in this module. You may distribute this module under the terms of either the Gnu GPL, 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 lyris@activestate.com 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, matt@sergeant.org This man page was added as well as some serious modifications to the script by Fabien Ninoles <fabien@debian.org> for the Debian Project. perl v5.10.1 2009-12-30 XPATH(1p)

Check Out this Related Man Page

XACOBEO(1p)						User Contributed Perl Documentation					       XACOBEO(1p)

NAME
xacobeo - Graphical interface for running XPath queries. SYNOPSIS
xacobeo [OPTION]... [file [xpath]] Options: -h, --help brief help message -v, --version display the version of Xacobeo, XML::LibXML and libxml2 that are used and exit --html parse the input file as an HTML document Where file is a XML document and xpath a XPath query. OPTIONS
--help Print a brief help message and exits. --html Parse the file in the command line using the HTML parser. DESCRIPTION
This program provides a simple graphical user interface (GUI) for executing XPath queries and seeing their results. The GUI tries to provide all the elements that are needed in order to write, test and execute XPath queries without too many troubles. It displays the Document Object Model (DOM) and the namespaces used. The program registers the namespaces automatically and each element is displayed with its associated namespaces. All is performed with the idea of being able of running an XPath query as soon as possible without having to fight with the document's namespaces and by seeing automatically under which namespace each element is. This program is not an XML editor, at least not at this point, it's meant to be used for constructing and executing XPath queries. RATIONALE
The main idea behind this application is to provide a simple way for building XPath queries that will be latter integrated in to a program or XSLT transformation paths. Therefore, this program goal is to load an XML document and to display it as an XML parser sees it. Thus each node element is prefixed with its namespace. IMPLEMENTATION
This program uses XML::LibXML (libxml2) for all XML manipulations and Gtk2 for the graphical interface. LIMITATIONS
For the moment, the program focuses only on XPath and doesn't allow the XML document to be edited. AUTHOR
Emmanuel Rodriguez <potyl@cpan.org>. COPYRIGHT AND LICENSE
Copyright (C) 2008,2009 by Emmanuel Rodriguez. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available. perl v5.14.2 2011-11-16 XACOBEO(1p)
Man Page