EU Parliament Monitor — API Documentation - v1.0.9
    Preparing search index...
    • Generate an RSS 2.0 XML feed for a single language.

      Every item is escaped via escapeXML so titles or descriptions containing &/</etc. don't break feed readers. The channel-level <lastBuildDate> reflects "now" — callers that need deterministic output for tests should pass an explicit buildDate override.

      Parameters

      • articleInfos: readonly RssItem[]

        Articles, ideally already sorted newest-first

      • buildDate: string = ...

        Optional override for the channel-level <lastBuildDate> (RFC-822 string). Defaults to new Date().toUTCString().

      • channel: RssChannel = DEFAULT_RSS_CHANNEL

        Optional localized channel envelope. Defaults to the English DEFAULT_RSS_CHANNEL so existing call sites stay byte-compatible.

      Returns string

      Complete RSS 2.0 XML document