XQuery, XPath tools
XPath is a language that describes how to locate specific elements (and attributes, processing instructions, etc.) in a document. It allows you to locate specific content within an XML document. XPATH treats an XML document as a logical ordered tree,
From : www.dpawson.co.uk/xsl/xslvocab.html
XPath is a language for addressing parts of an XML document, designed to be used by both XSLT and XPointer.
XSH
XSH is a powerfull command-line tool for querying, processing and editing XML documents. It features a shell-like interface with auto-completion for comfortable interactive work, but can be as well used for off-line (batch) processing of XML data. XSH makes extensive use of the XPath language, but system shell and the Perl programming language are both accessible from XSH as well, in a very natural way. XSH itself is written in Perl and uses XML::LibXML bindings of libxml2 library as the XML-backend.
Features
Based on excellent libxml2
Work with multiple DOM trees at once
Filesystem-like navigation within the DOM tree using XPath
XPath-based copy/move nodes within a DOM tree or between two DOM trees (with automatic node-type conversion, so that you may e.g. move text nodes into attributes or comments)
Deleting nodes, creating nodes of any type (elements, attributes, text, cdata, comments, well-balanced XML chunks, and (experimentally) even entity reference)
XPath-based search and XML listing
Arbitrary XPath and Perl expression evaluation
Conditional statements, while loop, Perl-like foreach loop
Command outupt redirection using a unix pipe; for example, use
xsh> list //word | grep [A-Z] | less
to read a list all word elements containing letters A to Z letters in less
XML or HTML input and output
XSLT transformation
Validaton against DTD, RelaxNG and (partially implemented) W3C Schemas
XInclude support for both reading/writing
XUpdate support
Auto-conversion between XPath and Perl objects
Global, local and lexical variables (as in Perl)
User-defined procedures
XML Namespace support in XPath expressions
Lots of handy XPath extension functions
Support for user-definable XPath extension functions, implemented in Perl
Easy access to Perl and system calls
Fully featured interactive shell with history and TAB-completion (for XSH commands, XPath expressions, variables, filenames, etc).
Extensive on-line help and documentation
visit
XSH
XSH was visited : 91 times
Loading .....