|
Project Information
Featured
Downloads
|
OverviewThe XSWI project hosts a simple, standalone XML stream writer for iOS implemented in Objective-C. BackgroundThe project is inspired by the kXML and StAX serializers from the Java world. FeaturesThe most important features are
UsageUsage is straightforward: // allocate serializer XMLWriter* xmlWriter = [[XMLWriter alloc]init]; // start writing XML elements [xmlWriter writeStartElement:@"Root"]; [xmlWriter writeCharacters:@"Text content for root element"]; [xmlWriter writeEndElement]; // get the resulting XML string NSString* xml = [xmlWriter toString]; This produces the following XML string: <Root>Text content for root element</Root> Head over to the wiki for a better introduction and examples. XML beginners are encouraged to see if this project is something for them. Source codeThe relevant source code consists of two files (XMLWriter.h and XMLWriter.m). No frameworks beyond the Foundation framework are necessary. LicenseThe project is available under the MIT open source license. In a nuthsell, this means this project is free to use in proprietary (also commercial) software without opening up any of your own code or contributing derivate works. More details in the wiki. News24th of February 2012: > 400 downloads for version 1.04 and > 1000 in total :P HistoryAug 29th 2011: Version 1.04 released with fix for issue 5 . |