Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Utility to perform basic changes (add, remove or replace nodes) on XML documents

branch: master
README
XMLPATCH - simple non-interactive xml editor

Xmlpatch utilizes Jari Urpalainen's XML Patch library 
(http://xmlpatch.sourceforge.net/) to perform XML document changes. The changes
are specified using XML patch file with following structure:

<changes>
    <change file="PATH/TO/FILE">
        <add sel="XPATH EXPRESSION">
            CONTENT_TO_BE_ADDED
        </add>
        <replace sel="XPATH EXPRESSION">
            NEW_CONTENT
        </add>
        <remove sel="XPATH EXPRESSION"/>
    </change>
</changes>

One change node can contain any number of add, replace and remove nodes and
changes node can contain any number of change nodes.

See xmlpatch --help for more informations or run make doc and then check out
doc/examples.html for examples.
Something went wrong with that request. Please try again.