package tyxml

  1. Overview
  2. Docs
TyXML is a library for building correct HTML and SVG documents

Install

Dune Dependency

Authors

Maintainers

Sources

tyxml-4.3.0.tbz
sha256=6e1bd76b184eb8bf43550138fa1e14f03b5761187ff38891179a36bdddbdbfc3
md5=fd834a567f813bf447cab5f4c3a723e2

doc/tyxml.functor/Xml_print/Make_fmt/index.html

Module Xml_print.Make_fmt

Printers for raw XML modules.

Parameters

module I : TagList

Signature

val pp : ?encode:(string -> string) -> ?indent:bool -> unit -> Format.formatter -> Xml.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

A custom encoding function can be provided with the ~encode argument. Various implementations of encode are available in Xml_print.

OCaml

Innovation. Community. Security.