.
[SXSI/xpathcomp.git] / HACKING
1 Compilation instruction:
2
3 compile the TextCollection :
4
5 cd XMLTree/TextCollection
6 make
7
8 compile libcds :
9
10 cd XMLTree/libcds
11 make
12
13 compile XMLTree :
14 cd XMLTree
15 make
16
17 compile xpathcomp/
18 make
19
20 you can compile with make DEBUG=true to get more statistics the overall programm is slower
21 but you get precise timing for each individual function calls to the XMLTree interface.
22
23
24 Usage :
25 ./main 'file.xml' 'query' [output]
26
27 file.xml is the input file. There are some in the tests subdirectory. At the moment you can mainly test
28 with base.xml and tiny.xml. Any file bigger than this will take too much time to load.
29
30
31 output is optional. If specified, it is the name of a file to which the result of the query is serialized.
32 If output is not given, the the result of the query is kept as a set of identifier and no access to
33 the string collection is made.
34
35
36 There are a few flags:
37
38 -f sample factor [default=64]
39 -i index empty texts [default=false]
40 -d Disable text collection[default=false]
41 -help  Display this list of options
42 --help  Display this list of options
43
44
45 for instance:
46 ./main -f 29 -d tests/tiny.xml '//para'