ocsigenserver
A full-featured and extensible Web server
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library ocsigenserver
val element :
name:string ->
?obligatory:bool ->
?init:( unit -> unit ) ->
?elements:element list ->
?attributes:attribute list ->
?pcdata:( string -> unit ) ->
?other_elements:( string -> (string * string) list -> Xml.xml list -> unit ) ->
?other_attributes:( string -> string -> unit ) ->
unit ->
element
Create the specification of a XML element.
val attribute :
name:string ->
?obligatory:bool ->
( string -> unit ) ->
attribute
attribute ~name f
create a specification of a XML attribute.
val process_element :
in_tag:string ->
elements:element list ->
?pcdata:( string -> unit ) ->
?other_elements:( string -> (string * string) list -> Xml.xml list -> unit ) ->
Xml.xml ->
unit
Process an XML element by the specifications.
val process_elements :
in_tag:string ->
elements:element list ->
?pcdata:( string -> unit ) ->
?other_elements:( string -> (string * string) list -> Xml.xml list -> unit ) ->
?init:( unit -> unit ) ->
Xml.xml list ->
unit
Application of process_element
on a list of XML elements.
The specification for ignoring blank PCDATA ('\n', '\r', ' ', '\t') and failing otherwise (a reasonable default).