Module 2-Svg.Xml
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.
module W : Xml_wrap.Ttype aname= stringtype event_handlertype mouse_event_handlertype keyboard_event_handlertype touch_event_handlertype attrib
val float_attrib : aname -> float wrap -> attribval int_attrib : aname -> int wrap -> attribval string_attrib : aname -> string wrap -> attribval space_sep_attrib : aname -> string list wrap -> attribval comma_sep_attrib : aname -> string list wrap -> attribval event_handler_attrib : aname -> event_handler -> attribval mouse_event_handler_attrib : aname -> mouse_event_handler -> attribval keyboard_event_handler_attrib : aname -> keyboard_event_handler -> attribval touch_event_handler_attrib : aname -> touch_event_handler -> attribval uri_attrib : aname -> uri wrap -> attribval uris_attrib : aname -> uri list wrap -> attrib
val empty : unit -> eltval comment : string -> eltval pcdata : string wrap -> eltval encodedpcdata : string wrap -> eltval entity : string -> eltval leaf : ?a:attrib list -> ename -> eltval node : ?a:attrib list -> ename -> elt list_wrap -> eltval cdata : string -> eltval cdata_script : string -> eltval cdata_style : string -> elt