Lightweight XML parsing in pure Swift 4. No Foundation. No dependencies.
SwiftXML is an event-driven XML parser intended to replace the Foundation (NS)XMLParser class. SwiftXML works on Linux. SwiftXML doesn’t wrap anything. It parses XML directly, character by character. And the API is simple and easy to use:
SwiftXML
Lightweight XML parsing in pure Swift 4. No Foundation. No dependencies.
SwiftXML is an event-driven XML parser intended to replace the Foundation (
NS)XMLParserclass. SwiftXML works on Linux. SwiftXML doesn’t wrap anything. It parses XML directly, character by character. And the API is simple and easy to use:Import the package with
Supported XML features:
<,>,',",&) in text data<,>,',",&) in attribute dataCDATAsectionsSwiftXML will tokenize your XML string into tags and data. It does not build any tree structures.
See the
tests.swiftfile for a usage example.