package SZXX

  1. Overview
  2. Docs

Module Expert.To_DOMSource

Assemble a sequence of SAX.node "events" into a classic XML document

Sourcetype state = {
  1. decl_attrs : DOM.attr_list Base.option;
  2. stack : partial Base.list;
  3. top : DOM.element Base.option;
}
Sourceval sexp_of_state : state -> Sexplib0.Sexp.t
Sourceval compare_state : state -> state -> Base.int
Sourceval equal_state : state -> state -> Base.bool
Sourceval init : state
Sourceval folder : ?strict:Base.bool -> state -> node -> state

strict (default: true) When false, non-closed elements are treated as self-closing elements, HTML-style. For example a <br> without a matching </br> will be treated as a self-closing <br />