From b24a04e34392574cdab78bab048bdd73fd86997d Mon Sep 17 00:00:00 2001 From: Nathan Straz Date: Mon, 4 Aug 2008 17:43:36 -0400 Subject: Add gxpd to remove sections from XML files. --- gxpd.1 | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 gxpd.1 (limited to 'gxpd.1') diff --git a/gxpd.1 b/gxpd.1 new file mode 100644 index 0000000..9eb619c --- /dev/null +++ b/gxpd.1 @@ -0,0 +1,53 @@ +.TH GXPD 1 "4 Aug 2008" +.SH NAME +gxpd \- Delete sections of XML documents using XPath expressions +.SH SYNOPSIS +\fBgxpd\fR [\fIoptions\fR] \fIXPATH\fR [\fIFILE\fR...] +.SH DESCRIPTION + +.B Gxpd +deletes sections from the specified XML files and saves the result in-place, +or removes the sections from a document parsed from standard input and prints +it to standard output. + +.SH ARGUMENTS + +.TP +.BI \-p " PRE" +The prefix to use in the XPath expression to match the default XML +name space in the document. XPath 1.0 does not define a way to match +the default name space when an XML document contains XML name spaces. +By specifying a default name space prefix here, you can match on the +default prefix in the document. + +.SH EXAMPLES +.nf +.B Example document + + + C of foo + + + C of bar + + + C of baz + + + +.B # gxpd "/A/B[@name='baz']" example.xml +Removed 1 nodes +.B # cat example.xml + + + + C of foo + + + C of bar + + + + +.SH "SEE ALSO" +gxpp(1), http://www.w3.org/TR/xpath -- cgit