Skip to content

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

License

Notifications You must be signed in to change notification settings

petris/xmlpatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published