Projects / XMLStarlet

XMLStarlet

XMLStarlet is a set of command line XML utilities which can be used to transform, query, validate, and edit XML documents and files using a simple set of shell commands, similar to the way it is done for plain text files using grep/sed/awk/tr/diff/patch.

Tags
Licenses
Operating Systems
Implementation

RSS Recent releases

  •  31 Dec 2012 21:51

Release Notes: This release fixes a crash in the pyx subcommand that occurred when it handled nodes with multiple attributes.

  •  09 Dec 2012 00:28

Release Notes: A crash with invalid editing operations has been fixed. The documentation can now be built from the tarball and installs to the correct place. The test suite has been made more forgiving of serialization differences between libxml2 versions.

  •  26 Aug 2012 22:44

Release Notes: This release adds Makefile rules for generating documentation (./configure --enable-build-docs) consistent with --transform-program-name. The ed subcommand now handles relative XPaths correctly, and there is no longer a hard limit on the number of edit operations. The last nodeset inserted can be accessed as the XPath variable $prev (or $xstar:prev), and new variables can also be defined with --var. ed -u -x may now insert nodesets instead of converting to string. The pyx subcommand now handles namespaces correctly.

  •  15 Jan 2012 02:08

Release Notes: Multiple values for --value-of are now correctly output with separating newlines. External entities are substituted. Pyx output now has a space between the attribute name and the value.

  •  02 Oct 2011 22:18

Release Notes: ASCII carriage returns are no longer added when editing UTF-16/32 xml files under Windows. --value-of now outputs the newline-separated values of all nodes instead of just the first. Special characters produced by ed -u -x are now properly escaped. EXSLT functions can now be used in ed -u -x expressions. This release adds a --var option to select. A libxml bug which caused bogus data to be passed to the error handler was worked around.

RSS Recent comments

30 Jul 2003 17:23 dsew Thumbs up

Best command-line XML tool I've found
I am doing editorial work on large collections of XML files, and I have been looking for command-line tools to facilitate various search-and-report functions--the kind of thing you'd do for text files using grep, sort, uniq, sed, etc. Of the ones I've looked at, XMLStarlet is not the easiest to use, but it is the most flexible and powerful (also the fastest). Essentially it gives you the ability to write quick XSLT scripts via the command line, plus other useful functions.

07 May 2003 17:57 mgrouch Thumbs up

we are waiting for users feedback

We welcome any user's feedback on this project which
would greatly help us to improve its quality.
Comments, suggestions, feature requests, bug reports can
be done via SourceForge
project web site
(see XMLStarlet
Sourceforge forums)

Screenshot

Project Spotlight

Collection Workflow Integration System

Software designed to assemble, organize, and share collections of data about resources.

Screenshot

Project Spotlight

Jackcess

A pure Java library for reading and writing MS Access databases.