Reputation: 15628
I am going to use NSXMLElement
in my project, so I tried to
#import <Foundation/NSXMLDocument.h>
but it gives an error: "No such file or directory." How can I include this?
Upvotes: 5
Views: 4022
Reputation: 17382
NSXMLDocument is an OS X only class
You cant use it in iOS.
Upvotes: 15
Reputation: 86651
You should include Foundation/Foundation.h which pulls in everything you need. If you created the project not from one of Apple's Objective-C templates, you'll need to make sure that the Foundation framework is referenced by it.
Upvotes: 0