Parse feed (Atom)
Parses the XML of an Atom feed and returns a structure with feed data and items
- Parameters
- Advanced call ?
Function ParseFeedAtom(Val XMLText) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| XMLText | --xml | String | ✔ | XML content of Atom feed |
Returns
Structure Of KeyAndValue - Feed 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.ParseFeedAtom(FeedXML);
- Bash
- CMD/Bat
oint rss ParseFeedAtom \
--xml "/tmp/4cvlm1a1.cdo.xml"
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"
}
]
}