SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

This is xsh - an XML Editing Shell

Copyright (c) 2002,2003,2004 Petr Pajas

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.

Features

  • 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
Instalation

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.

Usage

run `xsh -i' from your terminal and type `help | less' to find out what to do next.

Licence

This program is free software; you can redistribute it and/or modify it under the terms of either:

  1. GPL - GNU General Public Licence - Version 2 See http://www.gnu.org/copyleft/gpl.html or LICENCE file included in XSH distribution package
  2. the "Perl Artistic License" See Artistic file included in XSH distribution package


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.