projects
/
SXSI
/
xpathcomp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e5a0a6
)
Encapsulate serialization results around with <xml_result>...</xml_result>
author
Kim Nguyễn
<kn@lri.fr>
Thu, 12 Apr 2012 16:08:18 +0000
(18:08 +0200)
committer
Kim Nguyễn
<kn@lri.fr>
Thu, 12 Apr 2012 16:08:18 +0000
(18:08 +0200)
src/nodeSet.ml
patch
|
blob
|
history
diff --git
a/src/nodeSet.ml
b/src/nodeSet.ml
index
ad3768b
..
142476b
100644
(file)
--- a/
src/nodeSet.ml
+++ b/
src/nodeSet.ml
@@
-192,8
+192,10
@@
module Mat : S with type t = Tree.node mat =
Unix.openfile name [ Unix.O_WRONLY; Unix.O_TRUNC; Unix.O_CREAT ] 0o666,
Unix.close
in
+ ignore (Unix.write fd "<xml_result>\n" 0 13);
iter (fun node -> Tree.print_xml v node fd) l;
Tree.flush v fd;
+ ignore (Unix.write fd "</xml_result>\n" 0 14);
finish fd
end