Parse feed (RSS)
Parses the XML of an RSS feed and returns a structure with channel data and items
- Parameters
- Advanced call ?
Function ParseFeedRSS(Val XMLText) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| XMLText | --xml | String | ✔ | XML content of RSS feed |
Returns
Structure Of KeyAndValue - Channel structure
| Parameter | Description |
|---|---|
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
FeedXML = "";
Result = OPI_RSS.ParseFeedRSS(FeedXML);
- Bash
- CMD/Bat
oint rss ParseFeedRSS \
--xml "/tmp/nvhos0ps.2ba.xml"
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"
}
]
}