Getting started using KissXML

The newest kissXML:https://github.com/robbiehanson/KissXML

 

 

 

To use KissXML within your project, there are two steps:

1.Copy the KissXML folder into your project (ignore the UnitTesting folder)

2.Configure Xcode to work with libxml2(add an existing FWrameork "libxml2.2.7.3.dylib")

 

 

Details

The KissXML folder contains:

  • DDXML.h (Standard header file you will #import)
  • DDXMLDocument
  • DDXMLElement
  • DDXMLNode
  • Categories/NSString+DDXML
  • Private/DDXMLPrivate.h
  • Additions/DDXMLElementAdditions (this is optional, all the others listed above are required)

After adding the KissXML folder you'll need to add libxml2 to your Xcode project. There are 2 steps to this process:

1.Tell Xcode where it can find the libxml2 header files so it will compile

2.Tell Xcode where it can find the libxml2 compiled library so it will link (last step of compiling)

 

 

You'll be adding this to your compiler instructions (at project level, not target level)

OTHER_LDFLAGS(Other Linker Flags) = -lxml2

HEADER_SEARCH_PATHS = /usr/include/libxml2

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值