Skip to content

Swift version of Apple's XMLPerformance sample code project demonstrating how to do XML parsing with both NSXMLParser and libxml/libxml2. This project shows how to interface with the C libraries libxml and sqlite from Swift. It also illustrates how to parse XML using asynchronous C callbacks for SAX parsing from libxml.

License

Notifications You must be signed in to change notification settings

FTS-InfoTech/XMLPerformance-Swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XMLPerformance-Swift

Swift version of Apple's XMLPerformance sample code project.


Requirements

Xcode 8.1 or later, Swift 3.

For Swift 2.3 version, see branch 'swift-2.3'.


Abstract from Apple

This sample explores two approaches to parsing XML, focusing on performance with respect to speed, memory footprint, and user experience. The XML data used is the current "Top 300" songs from the iTunes store. The data itself is not particularly important to the sample - it was chosen because of its simplicity, availability, and because the size (approximately 850KB) is sufficient to demonstrate the performance issues central to the sample.


Notes

This code explores how to interface to the C libraries libxml and sqlite including providing asynchronous callbacks into Swift from C for SAX parsing.


Modifications

Adapted code from Objective-C to Swift 3.

What is the License for the Tutorial Source Code?

MIT License applies for the code in this repository

About

Swift version of Apple's XMLPerformance sample code project demonstrating how to do XML parsing with both NSXMLParser and libxml/libxml2. This project shows how to interface with the C libraries libxml and sqlite from Swift. It also illustrates how to parse XML using asynchronous C callbacks for SAX parsing from libxml.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published