package erssical

  1. Overview
  2. Docs

Module Erssical.IoSource

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.

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

Utilities

Sourceval split_string : ?keep_empty:bool -> string -> char list -> string list
Sourceval strip_string : string -> string
Sourceval get_att : ?pref:string -> 'a -> ((string * 'a) * 'b) list -> 'b option
Sourceval 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.

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

Writing channels and queries to XML

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