A Foundation.XMLParser wrapper for swift. Written as a part of Xmmp.swift.
Features
Calls delegate method (with XmlElement) when an element is parsed from the provided source (Data, InputStream or file URL).
Stores parsed document as a variable (accessible during parsing)
Installation
CocoaPods
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
To integrate Xml.swift into your Xcode project using CocoaPods, specify it in your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
target '<Your Target Name>' do
pod 'Xml.swift', '~> 1.0'
end
Then, run the following command:
$ pod install
Carthage
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
$ brew update
$ brew install carthage
To integrate Xml.swift into your Xcode project using Carthage, specify it in your Cartfile:
github "BiAtoms/Xml.swift" ~> 1.0
Run carthage update to build the framework and drag the built XmlSwift.framework into your Xcode project.
Swift Package Manager
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It is in early development, but Xml.swift does support its use on supported platforms.
Once you have your Swift package set up, adding Xml.swift as a dependency is as easy as adding it to the dependencies value of your Package.swift.
Xml.swift
A Foundation.XMLParser wrapper for swift. Written as a part of Xmmp.swift.
Features
XmlElement
) when an element is parsed from the provided source (Data
,InputStream
or fileURL
).Installation
CocoaPods
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
To integrate Xml.swift into your Xcode project using CocoaPods, specify it in your
Podfile
:Then, run the following command:
Carthage
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
To integrate Xml.swift into your Xcode project using Carthage, specify it in your
Cartfile
:Run
carthage update
to build the framework and drag the builtXmlSwift.framework
into your Xcode project.Swift Package Manager
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the
swift
compiler. It is in early development, but Xml.swift does support its use on supported platforms.Once you have your Swift package set up, adding Xml.swift as a dependency is as easy as adding it to the
dependencies
value of yourPackage.swift
.Manually
Just drag and drop the files in the Sources folder.
Authors
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE file for details