# 09. Implement iOS RSS/Atom feed parser

meta:
  id: native-business-logic-migration-09
  feature: native-business-logic-migration
  priority: P0
  depends_on: [native-business-logic-migration-06]
  tags: [implementation, ios, parsing]

objective:
- Implement RSS 2.0 and Atom 1.0 feed parser for iOS

deliverables:
- FeedParser.swift
- RSSParser.swift
- AtomParser.swift
- FeedType.swift (enum)
- ParseResult.swift
- XML parsing utilities

tests:
- Unit: Test RSS 2.0 parsing with sample feeds
- Unit: Test Atom 1.0 parsing with sample feeds
- Unit: Test iTunes namespace handling
- Unit: Test error cases (malformed XML)
- Integration: Test with real-world feeds

acceptance_criteria:
- RSS 2.0 feeds parse correctly
- Atom 1.0 feeds parse correctly
- iTunes namespace handled
- Enclosures extracted properly
- Error handling for malformed feeds
- Performance: <100ms for typical feed

validation:
- Run unit tests with sample feeds
- Test with known problematic feeds

notes:
- Use Swift's XMLParser or SwiftXML
- Handle namespaces properly
- Support both inline and separate content
