package virtual_dom

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Html.XmlSource

Underlying XML data-structure

The type variables in elt and attrib are know as phantom types. The implementation, defined here, is actually monomorphic.

In particular, tyxml doesn't impose any overhead over the underlying representation. The tot and toelt functions allows to convert between the typed and the untyped representation without any cost.

Note that some implementation may not be iterable or printable, such as the Dom representation exposed by js_of_ocaml.

Sourcetype 'a wrap = 'a W.t
Sourcetype 'a list_wrap = 'a W.tlist
Sourcetype uri = Xml.uri
Sourceval string_of_uri : (uri, string) W.ft
Sourceval uri_of_string : (string, uri) W.ft
Sourcetype aname = string
Sourcetype event_handler = Xml.event_handler
Sourcetype mouse_event_handler = Xml.mouse_event_handler
Sourcetype keyboard_event_handler = Xml.keyboard_event_handler
Sourcetype touch_event_handler = Xml.touch_event_handler
Sourcetype attrib = Xml.attrib
Sourceval float_attrib : aname -> float wrap -> attrib
Sourceval int_attrib : aname -> int wrap -> attrib
Sourceval string_attrib : aname -> string wrap -> attrib
Sourceval space_sep_attrib : aname -> string list wrap -> attrib
Sourceval comma_sep_attrib : aname -> string list wrap -> attrib
Sourceval event_handler_attrib : aname -> event_handler -> attrib
Sourceval mouse_event_handler_attrib : aname -> mouse_event_handler -> attrib
Sourceval keyboard_event_handler_attrib : aname -> keyboard_event_handler -> attrib
Sourceval touch_event_handler_attrib : aname -> touch_event_handler -> attrib
Sourceval uri_attrib : aname -> uri wrap -> attrib
Sourceval uris_attrib : aname -> uri list wrap -> attrib
Sourcetype elt = Xml.elt
Sourcetype ename = string
Sourceval empty : unit -> elt
Sourceval comment : string -> elt
Sourceval pcdata : string wrap -> elt
Sourceval encodedpcdata : string wrap -> elt
Sourceval entity : string -> elt
Sourceval leaf : ?a:attrib list -> ename -> elt
Sourceval node : ?a:attrib list -> ename -> elt list_wrap -> elt
Sourceval cdata : string -> elt
Sourceval cdata_script : string -> elt
Sourceval cdata_style : string -> elt
OCaml

Innovation. Community. Security.