-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
46 lines (37 loc) · 1.19 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Compiling in linux:
-------------------
autoreconf -i (optional)
./configure
make
Running tests:
--------------
make check
and/or
xml-patch -v -f test.xml -p patch.xml
Patch operations described in rfc5261:
--------------------------------------
- multi-select extension (not in the specification):
<add msel="//foo"><bar/></add> ; adds <bar> onto <foo> anywhere
<replace msel="*/foo"><bar/></replace> ; replace each <foo> with <bar>
under document root element
<remove msel="//@attr"/> ; removes all "attr" attributes from the document
Simple and stupid auto diff tool:
---------------------------------
- look diff directory for a simple diff generator
- compares elements at each tree level with a simple (trivial) logic
- XPath selector values use only positional constraints
Testing:
--------
xml-diff -f test.xml -t patch.xml [-v] [-b] [-o file]
option -b does an additonal patch test
option -o file stores diff result
Install:
--------
- make install, better to use packaging - debian included. Rpm spec included
which will be generated by running ./configure
License:
--------
GNU LGPL
Legal notice (LEGAL_NOTICE):
----------------------------
clarifies some legal aspects of the software