プロジェクト
概要
A lightweight XML Document class for iOS.
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルOverview
SMXMLDocument is a very handy lightweight XML parser for iOS.
In brief:
// create a new SMXMLDocument with the contents of sample.xml
SMXMLDocument *document = [SMXMLDocument documentWithData:data error:&error];
// Pull out the <books> node
SMXMLElement *books = [document.root childNamed:@"books"];
// Look through <books> children of type <book>
for (SMXMLElement *book in [books childrenNamed:@"book"]) {
// demonstrate common cases of extracting XML data
NSString *isbn = [book attributeNamed:@"isbn"]; // XML attribute
NSString *title = [book valueWithPath:@"title"]; // child node value
// show off some KVC magic
NSArray *authors = [[book childNamed:@"authors"].children valueForKey:@"value"];
// do interesting things...
}
More info in the blog post: http://nfarina.com/post/2843708636/a-lightweight-xml-parser-for-ios
Non-ARC Support
Try the master_no_arc branch if your project has Automatic Reference Counting (ARC) disabled.
関連プロジェクトを探す
読み込み中…