XSH

XSH is a powerful command-line shell for XML processing.
Download

XSH Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Petr Pajas
  • Publisher web site:
  • http://search.cpan.org/~pajas/

XSH Tags


XSH Description

XSH is a powerful command-line shell for XML processing. 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. XSH project 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 | less to read a list all word elements containing chars from 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 moreRequirements:· 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-DOMFilterWhat's New in This Release:New Features:· XSH scripts can be "compiled" (xsh -D) into Perl scripts which start faster (see xsh --help for details)· XML::XSH2::Compile module allows efficient embedding of XSH2 scripts into Perl modules (see the module's manpage)· new command 'set' simplifies creating and modifying nodes· new command 'hash' simplifies hashing/grouping nodes by arbitrary keys· new commands 'change-ns-prefix' and 'change-ns-uri' add full control over namespace declarations· XPath functions xsh:match() (regexp matching), xsh:filename() (introspection), and xsh:lookup() (hash retrieval), xsh:document() (get open document by filename), and xsh:documents() (get all open documents)· the interactive shell has a customizable promptEnhancements:· the mapping expression of 'rename' and 'map' can be XPath· added save --encoding flag· added echo --no-space (:n) flag· pwd and locate can return paths based on a nearest (ancestor-or-self) ID · completion for default, xsh, and user-defined XPath functions· improved namespace handling· filenames of documents parsed from a file are absolute· many bugfixes


XSH Related Software