Encapsulate serialization results around with <xml_result>...</xml_result>
authorKim Nguyễn <kn@lri.fr>
Thu, 12 Apr 2012 16:08:18 +0000 (18:08 +0200)
committerKim Nguyễn <kn@lri.fr>
Thu, 12 Apr 2012 16:08:18 +0000 (18:08 +0200)
src/nodeSet.ml

index ad3768b..142476b 100644 (file)
@@ -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