package erssical

  1. Overview
  2. Docs

Reading and writing channels and queries.

Tags used in XML event information

tag_short is the short name, without namespace, for example "technologies". tag is the name with the prefix, which is the Ers_types.base_url.

val tag_level : string * string
val tag_type_short : string
val tag_type : string * string
val tag_keywords_short : string
val tag_keywords : string * string
val tag_speakers_short : string
val tag_speakers : string * string
val tag_organizers_short : string
val tag_organizers : string * string
val tag_location : string * string
val tag_start_short : string
val tag_start : string * string
val tag_end_short : string
val tag_end : string * string
val tag_audience : string * string

Utilities

val split_string : ?keep_empty:bool -> string -> char list -> string list
val strip_string : string -> string
val get_att : ?pref:string -> 'a -> ((string * 'a) * 'b) list -> 'b option
val get_elt : ?pref:string -> string -> Rss.xmltree list -> (Xmlm.attribute list * Rss.xmltree list) option

Reading channels and queries from XML

The functions raise Failure in case of error.

val mime_type_ical : string
val mime_type_rss : string
val mime_type_xml : string
val opts : (unit, Types.event) Rss.opts
val channel_of_file : string -> (unit, Types.event) Rss.channel_t * string list
val channel_of_string : string -> (unit, Types.event) Rss.channel_t * string list
val query_of_xml : Rss.xmltree -> Types.query
val query_of_file : string -> Types.query
val query_of_string : string -> Types.query

Writing channels and queries to XML

val file_of_channel : ('a, Types.event) Rss.channel_t -> string -> unit
val string_of_channel : ?indent:int -> ('a, Types.event) Rss.channel_t -> string
OCaml

Innovation. Community. Security.