package tyxml

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

Install

Dune Dependency

Authors

Maintainers

Sources

4.2.0.tar.gz
sha256=cda9dda443d479fadd1f4b8f882aef2a78c6e7ca7cbc95d886dfc5743f86ff9a
md5=c802f3c7036adcea3fc00398c23d1b2b

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) -> 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.