Xml_print.Make_fmt
Printers for raw XML modules.
module Xml : Xml_sigs.Iterable
module I : TagList
val pp : ?encode:(string -> string) -> ?indent:bool -> unit -> Format.formatter -> Xml.elt -> unit
pp () is a Format printer for untyped XML.
pp ()
Format
It can be used in combination with "%a". For example, to get a string:
"%a"
let s = Format.asprintf "%a" (pp ()) my_xml
A custom encoding function can be provided with the ~encode argument. Various implementations of encode are available in Xml_print.
~encode
encode
Xml_print