Skip to main content

Parse feed (Atom)

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

Function ParseFeedAtom(Val XMLText) Export

ParameterCLI optionTypeRequiredDescription
XMLText--xmlStringXML content of Atom feed
Returns

Structure Of KeyAndValue - Feed structure

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

Result = OPI_RSS.ParseFeedAtom(FeedXML);
oint rss ParseFeedAtom \
--xml "/tmp/4cvlm1a1.cdo.xml"
Result
{
"title": "Test Atom feed",
"id": "https://example.com/feed",
"link": "https://example.com",
"updated": "2026-05-26T14:40:23",
"entries": [
{
"title": "First record",
"id": "https://example.com/entry1",
"link": "https://example.com/entry1",
"updated": "2026-05-26T14:40:22",
"summary": "First record summary",
"content": "Full content of the first record",
"author": "First Author",
"published": "2026-05-26T14:40:22"
},
{
"title": "Second record",
"id": "https://example.com/entry2",
"link": "https://example.com/entry2",
"updated": "2026-05-26T14:40:23",
"summary": "Second record summary",
"content": "Full content of the second record",
"author": "Second Author",
"published": "2026-05-26T14:40:23"
}
]
}