Unable to #import<Foundation/NSXMLDocument.h>

4k Views Asked by At

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?

3

There are 3 best solutions below

0
On BEST ANSWER
0
On

On iOS you can use NSXMLParser.

1
On

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.