프로젝트
GitHub에서 보기
nfarina/xmldocument
소개
A lightweight XML Document class for iOS.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalOverview
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.
관련 프로젝트 살펴보기
불러오는 중…