package rss

  1. Overview
  2. Docs

Module Rss_ioSource

Parsing/Printing RSS documents.

Sourcetype xmltree =
  1. | E of Xmlm.tag * xmltree list
  2. | D of string
Sourceval string_of_xml : ?ns_prefix:(string -> string option) -> ?indent:int -> xmltree -> string
Sourceval source_string : [< `Channel of 'a | `Fun of 'b | `String of int * string ] -> string
Sourceval is_space : char -> bool
Sourceval trim : string -> string
Sourceval xml_of_source : Xmlm.source -> xmltree

Parsing

Sourcetype ('a, 'b) opts = {
  1. mutable errors : string list;
  2. read_channel_data : (xmltree list -> 'a option) option;
  3. read_item_data : (xmltree list -> 'b option) option;
}
Sourceval add_error : ('a, 'b) opts -> string -> unit
Sourceexception Error of string
Sourceval error : string -> 'a
Sourceval find_ele : string -> xmltree -> bool
Sourceval apply_opt : ('a -> 'b) -> 'a option -> 'b option
Sourceval get_att : ?ctx:(('a, 'b) opts * string) -> ?required:bool -> ((string * string) * string) list -> string -> string
Sourceval get_opt_att : ((string * string) * 'a) list -> string -> 'a option
Sourceval get_source : ('a, 'b) opts -> xmltree list -> Rss_types.source option
Sourceval get_enclosure : ('a, 'b) opts -> xmltree list -> Rss_types.enclosure option
Sourceval get_categories : ('a, 'b) opts -> xmltree list -> Rss_types.category list
Sourceval get_guid : ('a, 'b) opts -> xmltree list -> Rss_types.guid option
Sourceval get_cloud : ('a, 'b) opts -> xmltree list -> Rss_types.cloud option
Sourceval find_sub_cdata : string -> xmltree list -> string -> string
Sourceval get_image : ('a, 'b) opts -> xmltree list -> Rss_types.image option
Sourceval get_text_input : ('a, 'b) opts -> xmltree list -> Rss_types.text_input option
Sourceval filter_prefixed_nodes : xmltree list -> xmltree list
Sourceval read_ns_data : (xmltree list -> 'a option) option -> xmltree list -> 'a option
Sourceval item_of_xmls : ('a, 'b) opts -> xmltree list -> 'b Rss_types.item_t option
Sourceval items_of_xmls : ('a, 'b) opts -> xmltree list -> 'b Rss_types.item_t list
Sourceval get_skip_hours : ('a, 'b) opts -> xmltree list -> int list option
Sourceval int_of_day : string -> int
Sourceval day_of_int : int -> string
Sourceval get_skip_days : ('a, 'b) opts -> xmltree list -> int list option
Sourceval channel_of_source : ('a, 'b) opts -> Xmlm.source -> ('a, 'b) Rss_types.channel_t * string list
Sourceval make_opts : ?read_channel_data:(xmltree list -> 'a option) -> ?read_item_data:(xmltree list -> 'b option) -> unit -> ('a, 'b) opts
Sourceval default_opts : ('a, 'b) opts
Sourceval channel_of_string : ('a, 'b) opts -> string -> ('a, 'b) Rss_types.channel_t * string list
Sourceval channel_of_file : ('a, 'b) opts -> string -> ('a, 'b) Rss_types.channel_t * string list
Sourceval channel_of_channel : ('a, 'b) opts -> in_channel -> ('a, 'b) Rss_types.channel_t * string list
Sourceval channel_of_xmls : ('a, 'b) opts -> xmltree list -> ('a, 'b) Rss_types.channel_t * string list

Printing

Sourceval opt_element : string option -> string -> xmltree list
Sourceval default_date_format : string
Sourceval err_date : 'a -> unit
Sourceval xml_of_category : Rss_types.category -> xmltree
Sourceval xmls_of_categories : Rss_types.category list -> xmltree list
Sourceval xmls_of_opt_f : ('a -> 'b) -> 'a option -> 'b list
Sourceval xml_of_enclosure : Rss_types.enclosure -> xmltree
Sourceval xmls_of_enclosure_opt : Rss_types.enclosure option -> xmltree list
Sourceval xml_of_guid : Rss_types.guid -> xmltree
Sourceval xmls_of_guid_opt : Rss_types.guid option -> xmltree list
Sourceval xml_of_source_field : Rss_types.source -> xmltree
Sourceval xmls_of_source_opt : Rss_types.source option -> xmltree list
Sourceval xml_of_image : Rss_types.image -> xmltree
Sourceval xmls_of_image_opt : Rss_types.image option -> xmltree list
Sourceval xml_of_cloud : Rss_types.cloud -> xmltree
Sourceval xmls_of_cloud_opt : Rss_types.cloud option -> xmltree list
Sourceval xml_of_skip_hours : int list -> xmltree
Sourceval xmls_of_skip_hours_opt : int list option -> xmltree list
Sourceval xml_of_skip_days : int list -> xmltree
Sourceval xmls_of_skip_days_opt : int list option -> xmltree list
Sourceval xml_of_text_input : Rss_types.text_input -> xmltree
Sourceval xmls_of_text_input_opt : Rss_types.text_input option -> xmltree list
Sourceval xml_of_item : ?item_data_printer:('a -> xmltree list) -> 'a Rss_types.item_t -> xmltree
Sourceval xml_of_channel : ?channel_data_printer:('a -> xmltree list) -> ?item_data_printer:('b -> xmltree list) -> ('a, 'b) Rss_types.channel_t -> xmltree
Sourcemodule SMap : sig ... end
Sourceval print_channel : ?channel_data_printer:('a -> xmltree list) -> ?item_data_printer:('b -> xmltree list) -> ?indent:int -> ?encoding:string -> Format.formatter -> ('a, 'b) Rss_types.channel_t -> unit