Liking cljdoc? Tell your friends :D

atom-validator.rss

RSS 2.0 feed parsing and validation. Supports RSS 2.0 specification with validation for:

  • Required channel elements (title, link, description)
  • Optional channel elements (language, pubDate, lastBuildDate, generator)
  • Item elements (title OR description required, link, pubDate, guid, enclosure, category)
RSS 2.0 feed parsing and validation.
Supports RSS 2.0 specification with validation for:
- Required channel elements (title, link, description)
- Optional channel elements (language, pubDate, lastBuildDate, generator)
- Item elements (title OR description required, link, pubDate, guid, enclosure, category)
raw docstring

parse-itemclj

(parse-item item-el)

Parse an RSS item element into a Clojure map.

Parse an RSS item element into a Clojure map.
sourceraw docstring

parse-rfc822clj

(parse-rfc822 s)

Parse an RFC 822 datetime string. Returns java.util.Date or nil if invalid.

Parse an RFC 822 datetime string. Returns java.util.Date or nil if invalid.
sourceraw docstring

parse-rss-feedclj

(parse-rss-feed source)

Parse an RSS 2.0 feed from XML string or input stream. Returns a map with :title, :link, :description, :items, etc.

Parse an RSS 2.0 feed from XML string or input stream.
Returns a map with :title, :link, :description, :items, etc.
sourceraw docstring

rfc822-formatsclj

RFC 822 date formats commonly used in RSS feeds.

RFC 822 date formats commonly used in RSS feeds.
sourceraw docstring

validate-channel-descriptionclj

(validate-channel-description feed)

Channel MUST have a description element.

Channel MUST have a description element.
sourceraw docstring

validate-channel-last-build-dateclj

(validate-channel-last-build-date feed)

Channel lastBuildDate must be valid RFC 822 format if present.

Channel lastBuildDate must be valid RFC 822 format if present.
sourceraw docstring

(validate-channel-link feed)

Channel MUST have a link element.

Channel MUST have a link element.
sourceraw docstring

validate-channel-pubdateclj

(validate-channel-pubdate feed)

Channel pubDate must be valid RFC 822 format if present.

Channel pubDate must be valid RFC 822 format if present.
sourceraw docstring

validate-channel-titleclj

(validate-channel-title feed)

Channel MUST have a title element.

Channel MUST have a title element.
sourceraw docstring

validate-guid-uniquenessclj

(validate-guid-uniqueness feed)

Check that all guids in the feed are unique.

Check that all guids in the feed are unique.
sourceraw docstring

validate-itemclj

(validate-item item idx)

Validate a single RSS item. Returns a sequence of errors/warnings.

Validate a single RSS item. Returns a sequence of errors/warnings.
sourceraw docstring

validate-item-contentclj

(validate-item-content item idx)

Item MUST have at least a title OR description element.

Item MUST have at least a title OR description element.
sourceraw docstring

validate-item-guidclj

(validate-item-guid item idx)

Item guid should be unique within the feed. Note: This validates format only; uniqueness is checked at feed level.

Item guid should be unique within the feed.
Note: This validates format only; uniqueness is checked at feed level.
sourceraw docstring

validate-item-pubdateclj

(validate-item-pubdate item idx)

Item pubDate must be valid RFC 822 format if present.

Item pubDate must be valid RFC 822 format if present.
sourceraw docstring

validate-rss-feedclj

(validate-rss-feed feed)
(validate-rss-feed feed {:keys [strict?] :or {strict? false}})

Validate an RSS 2.0 feed. Returns {:valid? bool :errors [...] :warnings [...] :feed map}.

Arguments:

  • feed: Either a parsed feed map or XML string/input-stream

Options:

  • :strict? - Treat warnings as errors (default false)
Validate an RSS 2.0 feed. Returns {:valid? bool :errors [...] :warnings [...] :feed map}.

Arguments:
- feed: Either a parsed feed map or XML string/input-stream

Options:
- :strict? - Treat warnings as errors (default false)
sourceraw docstring

validate-rss-structureclj

(validate-rss-structure feed)

Validate RSS feed structure. Returns {:errors [...] :warnings [...]}.

Validate RSS feed structure. Returns {:errors [...] :warnings [...]}.
sourceraw docstring

validate-rss-urlsclj

(validate-rss-urls _feed)

Validate URLs in RSS feed (link elements, enclosures). Returns {:errors [...] :warnings [...]}.

Validate URLs in RSS feed (link elements, enclosures).
Returns {:errors [...] :warnings [...]}.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close