XSH 2.0.2 review

Download
by rbytes.net on

xsh is a powerfull command-line XML (DOM) editing tool/programming language in the manner of Unix shell interpreters and line-oriente

License: GPL (GNU General Public License)
File size: 0K
Developer: Petr Pajas
0 stars award from rbytes.net

xsh is a powerfull command-line XML (DOM) editing tool/programming language in the manner of Unix shell interpreters and line-oriented text editors like ed. It can be used either interactively or for batch-mode XML processing.

Installation:

Download and install all required perl modules. See INSTALL for a list. To install xsh itself, check PREFIX in config.mk and type `make install'. If you don't trust make-files, read INSTALL for details on manual installation.

Here are some key features of "XSH":
work with multiple DOM trees at once
XPATH navigation (filesystem-like) navigation within a DOM tree
copy/move nodes within a DOM tree or between two DOM trees
node deletion
node creation (element, attribute, text, cdata, comment, well-balanced chunk)
XPATH search and XML listing of nodes matched with XPATH
XPATH-based conditional statements, while statement
foreach statement allowing usage of relative XPATH expressions
command output filtering with unix pipe, for example xsh> list //word | grep [A-Z] | less
to read a list all word elements containing chars from [A-Z] in less
use of system commands (!ls) like in ftp
XSLT transformation
validation
textual and node-list variables
user-defined procedures
access to perl and shell commands
extensive help
and more

Requirements:
libxml2
Term-ReadLine-Perl
Text-Balanced
Parse-RecDescent
Text-Iconv
XML-NamespaceSupport
XML-SAX-Base
XML-SAX
XML-NodeFilter
XML-Filter-BufferText
XML-LibXML-Common
XML-LibXML
XML-LibXML-Iterator
XML-LibXML-XPathContext
XML-LibXSLT
XML-SAX-Writer
XML-XUpdate-LibXML
XML-Filter-DOMFilter

What's New in This Release:
history file can be specified via $HISTORY variable
history file now defaults to ~/.xsh2_history
print (aka echo) has a new flag: --stderr (:e)
wrap has a new flag --inner (:i):
wrap --inner a //b produces ... from ...
new apropos command for searching the help
save has a new flag: --subtree (:S)
various scattered fixes in the documentation
fixed a nasty bug that prevented &{...} constructs to work in perl>=5.8.5

XSH 2.0.2 keywords