Reputation: 3104
I know how to parse NSString object with DOM parser, but i have no idea how to get that NSString from xml file on web.
Any information would be helpful.
Upvotes: 1
Views: 653
Reputation: 27073
Create NSString
based on online .xml
file:
NSURL *theURL = [NSURL URLWithString:@"http://www.website.com/feed.xml"];
NSError *error = nil;
NSString *theXML = [NSString stringWithContentsOfURL:theURL encoding:NSUTF8StringEncoding error:&error];
Upvotes: 2