yahoojapan/swiftyxmlparser
Simple XML Parser implemented in Swift
Work with Alamofire
SwiftyXMLParser goes well with Alamofire. You can parse the response easily.
import Alamofire
import SwiftyXMLParser
Alamofire.request(.GET, "https://itunes.apple.com/us/rss/topgrossingapplications/limit=10/xml")
.responseData { response in
if let data = response.data {
let xml = XML.parse(data)
print(xml.feed.entry[0].title.text) // outputs the top title of iTunes app raning.
}
}In addition, there is the extension of Alamofire to combine with SwiftyXMLParser.
Migration Guide
Current master branch is supporting Xcode10. If you wanna use this library with legacy swift version, read release notes and install the last compatible version.
License
This software is released under the MIT License, see LICENSE.
Package Metadata
Repository: yahoojapan/swiftyxmlparser
Default branch: master
README: README.md