Up

module Xml

: sig
include module type of Xmlm
#
type t = ('a frag as 'a) frag list
#
val to_string : ?decl:bool -> t -> string
#
val of_string : ?entity:(string -> string option) -> ?enc:encoding -> string -> t

of_string s returns the XML tree described by s.

entity is called to resolve non predefined entity references such as "&". It must return an UTF-8 string corresponding to the replacement character data. By default, only predefined entities, i.e., "<", ">", "&", "'", and """, are recognized.
enc The encoding of the document. Default None which means that one does not know the encoding.
end