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/z5knkgnu.vne.xml"
Result
{
"title": "Test Atom feed",
"id": "https://example.com/feed",
"link": "https://example.com",
"updated": "2026-06-18T17:39:38",
"entries": [
{
"title": "First record",
"id": "https://example.com/entry1",
"link": "https://example.com/entry1",
"updated": "2026-06-18T17:39:38",
"summary": "First record summary",
"content": "Full content of the first record",
"author": "First Author",
"published": "2026-06-18T17:39:38"
},
{
"title": "Second record",
"id": "https://example.com/entry2",
"link": "https://example.com/entry2",
"updated": "2026-06-18T17:39:38",
"summary": "Second record summary",
"content": "Full content of the second record",
"author": "Second Author",
"published": "2026-06-18T17:39:38"
}
]
}