Search code examples
objective-ciosimportnsxmldocument

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?


Solution

  • NSXMLDocument is an OS X only class

    http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSXMLDocument_Class/Reference/Reference.html

    You cant use it in iOS.