2024-04-03 06:43:06 +02:00
|
|
|
//
|
|
|
|
// AtomParser.swift
|
|
|
|
// RSParser
|
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 6/25/17.
|
|
|
|
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
2024-09-02 21:03:24 +02:00
|
|
|
import SAX
|
2024-04-03 06:43:06 +02:00
|
|
|
|
|
|
|
// RSSParser wraps the Objective-C RSAtomParser.
|
|
|
|
//
|
|
|
|
// The Objective-C parser creates RSParsedFeed, RSParsedArticle, etc.
|
|
|
|
// This wrapper then creates ParsedFeed, ParsedItem, etc. so that it creates
|
|
|
|
// the same things that JSONFeedParser and RSSInJSONParser create.
|
|
|
|
//
|
|
|
|
// In general, you should see FeedParser.swift for all your feed-parsing needs.
|
|
|
|
|
2024-09-10 05:54:42 +02:00
|
|
|
//public struct AtomParser {
|
|
|
|
//
|
|
|
|
// public static func parse(_ parserData: ParserData) -> ParsedFeed? {
|
|
|
|
//
|
|
|
|
// if let rsParsedFeed = RSAtomParser.parseFeed(with: parserData) {
|
|
|
|
// return RSParsedFeedTransformer.parsedFeed(rsParsedFeed)
|
|
|
|
// }
|
|
|
|
// return nil
|
|
|
|
// }
|
|
|
|
//}
|