Debian Codegraph @

ide/rocqide/protocol/xml_printer.mli

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 type xml = Xml_datatype.xml
12
13 type t
14 type target = TChannel of out_channel | TBuffer of Buffer.t
15
16 val make : target -> t
17
18 (** Print the xml data structure to a source into a compact xml string (without
19 any user-readable formatting ). *)
20 val print : t -> xml -> unit
21
22 (** Print the xml data structure into a compact xml string (without
23 any user-readable formatting ). *)
24 val to_string : xml -> string
25
26 (** Print the xml data structure into an user-readable string with
27 tabs and lines break between different nodes. *)
28 val to_string_fmt : xml -> string
29
30 (** Print PCDATA as a string by escaping XML entities. *)
31 val pcdata_to_string : string -> string