package tyxml

  1. Overview
  2. Docs
A library for building correct HTML and SVG documents

Install

dune-project
 Dependency

Authors

Maintainers

Sources

tyxml-5.0.0.tbz
sha256=c725bb8918ff1b601e7926b7b6b4799f8f4ab70f5fba9f0970da657cb82c07f2
sha512=61881aa7101b5072b887802e78897920516c9c2b484d51ac281509e83c79969c7654caa31b125ad843b45740dfe143ed5218fd7e4d98dfba8e0b24b272308ed6

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

Module Xml_print.Make_fmtSource

Printers for raw XML modules.

Parameters

module _ : TagList

Signature

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