Import Foundations/NSXMLElement.h
I want to use the NSXMLElement in Cocoa/Objective-C. But when I
#import <Foundation/NSXMLElement.h>
XCode t开发者_如何学Cells me: No such file or directory found. I have Foundations Framework added to the linked libraries of my project.
How can I import the NSXMLElement?
Mac
NSXMLElement is part of the Foundation framework, it's imported by:
#import <Cocoa/Cocoa.h>
iPhone
NSXMLElement is not available on the iPhone.
Alternatives:
- NSXMLParser (native)
- TBXML (framework)
- KissXML (framework)
精彩评论