Module XML

module XML: sig .. end
XML documents, and dump to UTF8 buffers.

type t = {
   tag :Utils.UTF8.t; (*Identifier of XML tag.*)
   attrs :(Utils.UTF8.t * Utils.UTF8.t) list; (*Attributes of XML tag.*)
   text :Utils.UTF8.t; (*Text of XML tag, written before children.*)
   children :t list; (*Children of XML tag.*)
The type of XML tags.
val escape : Utils.UTF8.t -> Utils.UTF8.t
Escapes the passed string in such a way it can be used as an attribute value.
val dump : t -> Utils.UTF8Buffer.t -> unit
Dumps the XML document to the passed buffer.