xmldocument:适用于iOS的轻量级XML Document类

时间:2021-05-24 05:02:28
【文件属性】:
文件名称:xmldocument:适用于iOS的轻量级XML Document类
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-24 05:02:28
Objective-C 概述 SMXMLDocument是用于iOS的非常方便的轻量级XML解析器。 简单来说: // create a new SMXMLDocument with the contents of sample.xml SMXMLDocument *document = [SMXMLDocument documentWithData:data error:&error]; // Pull out the node SMXMLElement *books = [document.root childNamed:@"books"]; // Look through children of type for (SMXMLElement *book in [books childrenNamed:@"book"]) { // demonstrate
【文件预览】:
xmldocument-master
----XMLDocumentSamples()
--------main.m(134B)
--------XMLDocumentSamples.xcodeproj()
--------Default-568h@2x.png(18KB)
--------XMLDocumentSamples_Prefix.pch(205B)
--------AppDelegate.h(1KB)
--------sample.xml(627B)
--------XMLDocumentSamples-Info.plist(1KB)
--------AppDelegate.m(1KB)
----LICENSE(1KB)
----SMXMLDocument.m(7KB)
----README.md(1KB)
----.gitignore(81B)
----Extras()
--------SMXMLDocumentResponseSerializer.m(615B)
--------SMXMLDocumentResponseSerializer.h(1KB)
----SMXMLDocument.h(3KB)
----SMXMLDocument.podspec(747B)

网友评论