Tag Archives: gxpp

gxpp 1.1 released

Since I’m doing released for my other tools I figured it would be a good idea to merge the Makefile and spec changes to gxpp and cut a release too.  You should be able to build an rpm directly from the tarball.

Gxpp is a grep-like utility for XML documents.  It uses XPath expressions instead of regular expressions to query sections of XML documents.  It provides most of the standard grep command line options.


Introducing gxpp

Here’s another little tool which I use all the time.  It’s like grep, but for XML documents.  By using XPath expressions you can easily pull information out of XML documents to use in your shell scripts.  It’s great for digging through XML documents for that one fields which you need.

I use it a lot in cluster testing to get a list of node names from cluster.conf.

[root@morph-03 ~]# gxpp '//clusternode/@name' /etc/cluster/cluster.conf

It’s also very useful when used with collie as shown in Collie Gxpp Tricks.  In that wiki page I also talk about gxpd which deletes sections from an XML file and gxpm which makes it easy to insert new sections into an XML document.

The source code for this project is in my public_git directory on fedorapeople.

git clone git://fedorapeople.org/~nstraz/gxpp.git