Projects / 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.

Operating Systems

RSS Recent releases

  •  13 Jul 2013 08:09

    Release Notes: This release fixes a crash when trying to run pyx on nonexistent files and a boundary condition in the unescape command. The ed and sel commands can now refer to a document's top level default namespace with "_" or "DEFAULT" and give a friendly message if the user doesn't realize they need to specify namespaces.

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

    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)


    Project Spotlight


    A high-level scripting language.


    Project Spotlight


    An integrated solution for virtualization management.