Skip to main content

Parse feed (RSS)

Parses the XML of an RSS feed and returns a structure with channel data and items

Function ParseFeedRSS(Val XMLText) Export

ParameterCLI optionTypeRequiredDescription
XMLText--xmlStringXML content of RSS feed
Returns

Structure Of KeyAndValue - Channel structure

1C:Enterprise/OneScript code example
FeedXML = "";

Result = OPI_RSS.ParseFeedRSS(FeedXML);
oint rss ParseFeedRSS \
--xml "/tmp/nvhos0ps.2ba.xml"
Result
{
"title": "Test RSS channel",
"link": "https://example.com",
"description": "Test RSS channel description",
"lastBuildDate": "Tue, 0,000,000,026 May 2026 14:40:17 +0000",
"items": [
{
"title": "First element",
"description": "First element description",
"link": "https://example.com/item1",
"pubDate": "Tue, 0,000,000,026 May 2026 14:40:16 +0000",
"author": "test@example.com",
"guid": "item-1"
},
{
"title": "Second element",
"description": "Second element description",
"link": "https://example.com/item2",
"pubDate": "Tue, 0,000,000,026 May 2026 14:40:17 +0000",
"author": "test@example.com",
"guid": "item-2"
}
]
}