Xml_sigs.Typed_pp
type 'a elt
type doc
val pp_elt : ?encode:(string -> string) -> ?indent:bool -> unit -> Format.formatter -> 'a elt -> unit
pp_elt () is a Format printer for individual elements.
pp_elt ()
Format
A custom encoding function can be provided with the ~encode argument. Various implementations of encode are available in Xml_print.
~encode
encode
Xml_print
val pp : ?encode:(string -> string) -> ?indent:bool -> ?advert:string -> unit -> Format.formatter -> doc -> unit
pp () is a Format printer for complete documents.
pp ()
It can be used in combination with "%a". For example, to get a string:
"%a"
let s = Format.asprintf "%a" (pp ()) my_document