Aravindhan
Aravindhan

Reputation: 15628

Unable to #import<Foundation/NSXMLDocument.h>

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

Answers (3)

valexa
valexa

Reputation: 4503

On iOS you can use NSXMLParser.

Upvotes: 0

JeremyP
JeremyP

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

Related Questions