Module Csvfields.Xml
module type Xmlable = sig ... endThe functions provided by the with xml camlp4 extension, and that need to be provided in a hand made conversion to be used by the extension.
val to_string : xml -> stringBasic conversions
module Parser_state : sig ... endval stateful_of_string : Parser_state.t -> string -> xmlThread safe provided each thread uses a different
Parser_state.t
val attributes : xml -> (string * string) listval children : xml -> xml listval contents : xml -> string optionval child : xml -> string -> xml optionval kind : xml -> [ `Leaf | `Internal ]val xml_data : string -> xml
exceptionIllegal_atom of xmlExceptions that could be raised by to_xml and of_xml
exceptionUnexpected_xml of xml * string
val check_extra_fields : xml -> string list -> unit- raises Unexpected_xml,
Illegal_atom Used by the with xml extension
val decomplexify : xml list -> xmlval decomplexify_opt : xml list -> xml optionval decomplexify_list : xml list -> xml list optionval type_of_simple : xml list -> stringval wrap : xml -> xmlStandard wrapping to generate the necessary namespaces that are used in the automated conversions
module Restriction : sig ... endRestriction generation
val xsd_element : ?attr:(string * string) list -> name:string -> xml list -> xmlval xml_element : ?attr:(string * string) list -> name:string -> xml list -> xml
module type Atom = sig ... endval to_xml : to_string:('a -> string) -> 'a -> xml listHelper functions to create the conversion functions by hand
val of_xml : of_string:(string -> 'a) -> xml -> 'aval create_node : tag:string -> body:xml list -> xmlCreating an internal element in the xml tree
val create_data : string -> xmlCreating a leaf in the xml tree
type 'a of_xml= xml -> 'aConversion functions used by the camlp4 extension. Not to be used by hand
val unit_of_xml : unit of_xmlval bool_of_xml : bool of_xmlval string_of_xml : string of_xmlval char_of_xml : char of_xmlval int_of_xml : int of_xmlval float_of_xml : float of_xmlval int32_of_xml : Core.Int32.t of_xmlval int64_of_xml : Core.Int64.t of_xmlval nativeint_of_xml : Core.Nativeint.t of_xmlval big_int_of_xml : Big_int.big_int of_xmlval nat_of_xml : Nat.nat of_xmlval num_of_xml : Num.num of_xmlval ratio_of_xml : Ratio.ratio of_xmlval list_of_xml : ?tag:string -> (xml -> 'a) -> 'a list of_xmlval array_of_xml : tag:string -> (xml -> 'a) -> 'a array of_xmlval option_of_xml : tag:string -> (xml -> 'a) -> 'a option of_xmlval ref_of_xml : (xml -> 'a) -> 'a Core.ref of_xmlval lazy_t_of_xml : (xml -> 'a) -> 'a Core.Lazy.t of_xmlval recursive_of_xml : string -> (xml -> 'a) -> 'a of_xml
type 'a to_xml= 'a -> xml list
val xml_of_unit : unit to_xmlval xml_of_bool : bool to_xmlval xml_of_string : string to_xmlval xml_of_char : char to_xmlval xml_of_int : int to_xmlval xml_of_float : float to_xmlval xml_of_int32 : Core.Int32.t to_xmlval xml_of_int64 : Core.Int64.t to_xmlval xml_of_nativeint : Core.Nativeint.t to_xmlval xml_of_big_int : Big_int.big_int to_xmlval xml_of_nat : Nat.nat to_xmlval xml_of_num : Num.num to_xmlval xml_of_ratio : Ratio.ratio to_xmlval xml_of_ref : ('a -> xml list) -> 'a Core.ref to_xmlval xml_of_lazy_t : ('a -> xml list) -> 'a Core.Lazy.t to_xmlval xml_of_list : tag:string -> ('a -> xml list) -> 'a list to_xmlval xml_of_array : tag:string -> ('a -> xml list) -> 'a array to_xmlval xml_of_option : tag:string -> ('a -> xml list) -> 'a option to_xml
type to_xsd= xml list
val xsd_of_unit : to_xsdval xsd_of_bool : to_xsdval xsd_of_string : to_xsdval xsd_of_char : to_xsdval xsd_of_int : to_xsdval xsd_of_float : to_xsdval xsd_of_int32 : to_xsdval xsd_of_int64 : to_xsdval xsd_of_nativeint : to_xsdval xsd_of_big_int : to_xsdval xsd_of_list : string -> to_xsd -> to_xsdval xsd_of_array : string -> to_xsd -> to_xsdval xsd_of_nat : to_xsdval xsd_of_num : to_xsdval xsd_of_ratio : to_xsdval xsd_of_ref : to_xsd -> to_xsdval xsd_of_lazy_t : to_xsd -> to_xsdval xsd_of_option : string -> to_xsd -> to_xsd
module type X = sig ... end