package tyxml

  1. Overview
  2. Docs
type elt
val pp : ?encode:(string -> string) -> unit -> Format.formatter -> elt -> unit

pp () is a Format printer for untyped XML.

It can be used in combination with "%a". For example, to get a string:

let s = Format.asprintf "%a" (pp ()) my_xml
OCaml

Innovation. Community. Security.