What is SWXMLHash?

SWXMLHash is a relatively simple way to parse XML in Swift. If you’re familiar with NSXMLParser, this library is a simple wrapper around it. Conceptually, it provides a translation from XML to a dictionary of arrays (aka hash).

The API takes a lot of inspiration from SwiftyJSON.


  • Pricing: Free
  • Resource Link: https://github.com/drmohundro/SWXMLHash
  • Resource Maker: David Mohundro
  • Mobile Platform Destination: iOS Apps
  • Mobile Platform Support: Native iOS
  • Programming Languages: Swift
  • iOS Versions Supported: iOS 8.0+, iOS 9.0+, iOS 10.0+, iOS 11.0+, iOS 12.0+
  • CocoaPods: SWXMLHash
  • Carthage: drmohundro/SWXMLHash
  • Swift Package Manager: https://github.com/drmohundro/SWXMLHash.git