|
5 năm trước cách đây | |
---|---|---|
.. | ||
5.2.0-1c1ee | 5 năm trước cách đây | |
LICENSE.txt | 5 năm trước cách đây | |
README.markdown | 5 năm trước cách đây |
KissXML provides a drop-in replacement for Apple's NSXML class culster in environments without NSXML (e.g. iOS).
It is implemented atop the defacto libxml2 C library, which comes pre-installed on Mac & iOS. But it shields you from all the nasty low-level C pointers and malloc's, and provides an easy-to-use Objective-C library.
It is designed for speed and reliability, so it's read-access thread-safe and will "just-work". That is, KissXML provides an API that follows "what-you-would-expect" rules from an Objective-C library. So feel free to do things like parallel processing of an xml document using blocks. It will "just work" so you can get back to designing the rest of your app.
KissXML is a mature library used in thousands of products. It's also used in other libraries, such as XMPPFramework (an objective-c library for real-time xml streaming). It's even used in hospital applications.
KissXML was inspired by the TouchXML project, but was created to add full support for generating XML as well as supporting the entire NSXML API.
The minimum deployment target is iOS 8.0 / macOS 10.9 / tvOS 9.0 / watchOS 2.0.
The easiest way to install KissXML
is using CocoaPods.
use_frameworks!
pod 'KissXML'
After pod install
open your .xcworkspace
and import:
// Swift
import KissXML
// Objective-C on iOS 8+ with `use_frameworks!`
@import KissXML;
The KissXML.xcodeproj
project contains framework targets for iOS, macOS, tvOS, and watchOS.
Get started using KissXML
Learn more about KissXML
Can't find the answer to your question in any of the wiki articles? Try the mailing list.
Love the project? Wanna buy me a ☕️ ? (or a 🍺 😀 ):
SwiftNSXML
subspec. Added test for static library integration.libxml_module
subspec by removing references to libxml in public headers. Added Obj-C generics and nullability support to match NSXML API. Added watchOS support. Minimum iOS version is now 8.0.DDXML_NS_DECLARATIONS_ENABLED
to allow for better Swift compatibility. Added DDXML.swift
with mappings between NSXML classes and constants and DDXML.libxml/module.modulemap
and DDXML_LIBXML_MODULE_ENABLED
macro. You can use the KissXML/libxml_module
CocoaPods subspec to enable this feature.