1 (***********************************************************************)
5 (* Kim Nguyen, LRI UMR8623 *)
6 (* Université Paris-Sud & CNRS *)
8 (* Copyright 2010-2012 Université Paris-Sud and Centre National de la *)
9 (* Recherche Scientifique. All rights reserved. This file is *)
10 (* distributed under the terms of the GNU Lesser General Public *)
11 (* License, with the special exception on linking described in file *)
14 (***********************************************************************)
17 Time-stamp: <Last modified on 2013-01-30 19:06:57 CET by Kim Nguyen>
20 (** use: xml_file "XPath querie"
21 or : xml_file -f XPath_querie_file
22 only the first line of XPath_querie_file is read
27 (* to force ocaml build to add Formula to the dependency chain even if
31 let fd = open_in Sys.argv.(1) in
32 let d = Tree.load_xml_file fd in
37 let arg2 = Sys.argv.(2) in
38 Uparser.xpath Ulexer.token (Ulexing.from_latin1_string arg2)
43 fprintf err_formatter "Query: %a\n%!" XPath.Ast.print_path query;
44 fprintf err_formatter "Document:\n%!";
45 Tree.print_xml stderr doc (Tree.root doc);