المشاريع
عرض على GitHub
nfarina/xmldocument
حول
A lightweight XML Document class for iOS.
تطوير الويب والتطبيقاتالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
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.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…