package syndic

  1. Overview
  2. Docs
module Error : sig ... end
type text_construct =
  1. | Text of string
  2. | Html of string
  3. | Xhtml of Syndic_xml.t list
type author = {
  1. name : string;
  2. uri : Uri.t option;
  3. email : string option;
}
type category = {
  1. term : string;
  2. scheme : Uri.t option;
  3. label : string option;
}
type generator = {
  1. version : string option;
  2. uri : Uri.t option;
  3. content : string;
}
type icon = Uri.t
type id = string
type rel =
  1. | Alternate
  2. | Related
  3. | Self
  4. | Enclosure
  5. | Via
type published = CalendarLib.Calendar.t
type rights = text_construct
type title = text_construct
type subtitle = text_construct
type updated = CalendarLib.Calendar.t
type source = {
  1. authors : author * author list;
  2. categories : category list;
  3. contributors : author list;
  4. generator : generator option;
  5. icon : icon option;
  6. id : id;
  7. rights : rights option;
  8. subtitle : subtitle option;
  9. title : title;
  10. updated : updated option;
}
type mime = string
type content =
  1. | Text of string
  2. | Html of string
  3. | Xhtml of Syndic_xml.t list
  4. | Mime of mime * string
  5. | Src of mime option * Uri.t
type summary = text_construct
type entry = {
  1. authors : author * author list;
  2. categories : category list;
  3. content : content option;
  4. contributors : author list;
  5. id : id;
  6. published : published option;
  7. rights : rights option;
  8. sources : source list;
  9. summary : summary option;
  10. title : title;
  11. updated : updated;
}
type feed = {
  1. authors : author list;
  2. categories : category list;
  3. contributors : author list;
  4. generator : generator option;
  5. icon : icon option;
  6. id : id;
  7. rights : rights option;
  8. subtitle : subtitle option;
  9. title : title;
  10. updated : updated;
  11. entries : entry list;
}
val parse : Xmlm.input -> feed
val to_xml : feed -> Syndic_xml.t
val output : feed -> Xmlm.dest -> unit
val aggregate : ?id:id -> ?updated:updated -> ?subtitle:subtitle -> ?title:text_construct -> (Uri.t option * feed) list -> feed
val unsafe : Xmlm.input -> [> `Feed of [> `Author of [> `Email of string | `Name of string | `URI of string ] list | `Category of [> `Label of string | `Scheme of string | `Term of string ] list | `Contributor of [> `Email of string | `Name of string | `URI of string ] list | `Entry of [> `Author of [> `Email of string | `Name of string | `URI of string ] list | `Category of [> `Label of string | `Scheme of string | `Term of string ] list | `Content of [> `Data of Syndic_xml.t list | `SRC of string | `Type of string ] list | `Contributor of [> `Email of string | `Name of string | `URI of string ] list | `ID of [> `Data of string ] list | `Link of [> `HREF of string | `HREFLang of string | `Length of string | `Rel of string | `Title of string | `Type of string ] list | `Published of [> `Date of string ] list | `Rights of [> `Data of Syndic_xml.t list ] | `Source of [> `Author of [> `Email of string | `Name of string | `URI of string ] list | `Category of [> `Label of string | `Scheme of string | `Term of string ] list | `Contributor of [> `Email of string | `Name of string | `URI of string ] list | `Generator of [> `Content of string | `URI of string | `Version of string ] list | `ID of [> `Data of string ] list | `Icon of [> `URI of string ] list | `Link of [> `HREF of string | `HREFLang of string | `Length of string | `Rel of string | `Title of string | `Type of string ] list | `Logo of [> `URI of string ] list | `Rights of [> `Data of Syndic_xml.t list ] | `Subtitle of [> `Data of Syndic_xml.t list ] | `Title of [> `Data of Syndic_xml.t list ] | `Updated of [> `Date of string ] list ] list | `Summary of [> `Data of Syndic_xml.t list ] | `Title of [> `Data of Syndic_xml.t list ] | `Updated of [> `Date of string ] list ] list | `Generator of [> `Content of string | `URI of string | `Version of string ] list | `ID of [> `Data of string ] list | `Icon of [> `URI of string ] list | `Link of [> `HREF of string | `HREFLang of string | `Length of string | `Rel of string | `Title of string | `Type of string ] list | `Logo of [> `URI of string ] list | `Rights of [> `Data of Syndic_xml.t list ] | `Subtitle of [> `Data of Syndic_xml.t list ] | `Title of [> `Data of Syndic_xml.t list ] | `Updated of [> `Date of string ] list ] list ]
OCaml

Innovation. Community. Security.