TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
A forgiving HTML SAX Parser for iOS inspired by NSXMLParser
.
Axt is the German word for Ono (斧).
Axt is highly inspired by NSXMLParser
which is great for parsing XML but not for HTML. HTML is often not well-formed which makes it not suitable for NSXMLParser
. In this cases AXHTMLParser
provides a robust and reliable behavior.
SAX parser in general need less memory and are faster than DOM-style parser which makes them better suitable where memory and speed is key.
pod 'Axt'
NSXMLParser
)NSXMLParser
(same methods and delegate protocol)libxml
#import "Axt.h"
NSInputStream *stream = [NSInputStream inputStreamWithFileAtPath:...];
AXHTMLParser *parser = [[AXHTMLParser alloc] initWithStream:stream];
parser.delegate = ... // set the delegate
BOOL success = [parser parse];
Run the unit test with xctool
xctool -find-target AxtTests -sdk iphonesimulator test
Matthias Hochgatterer
Github: https://github.com/brutella/
Twitter: https://twitter.com/brutella
Axt is available under the MIT license. See the LICENSE file for more info.