Sample code for 30+ languages & platforms
Objective-C

Load XML from Local FilePath

Demonstrates how to load XML from a local XML file.

Chilkat Objective-C Downloads

Objective-C
#import <CkoXml.h>

BOOL success = NO;

CkoXml *xml = [[CkoXml alloc] init];

//  Pass either an absolute file path, or a file path relative from the current working directory of the caller.
success = [xml LoadXmlFile: @"qa_data/hamlet.xml"];
if (success == NO) {
    NSLog(@"%@",xml.LastErrorText);
    return;
}

NSLog(@"%@",@"Success.");