This is a two part question. I am using NSXMLParser to download an RSS feed.
NSURL *url = [NSURL URLWithString:@"linktorssxml"];
parser = [[NSXMLParser alloc] initWithContentsOfURL:url];
[parser setDelegate:self];
[parser setShouldResolveExternalEntities:NO];
[parser parse];
I wondered if there is a way to simply read the header of the xml remotely and check the last update timestamp, so that I only need to run the parser code and actually pull the entire xml if there has been a change?
Further, as I said this is a two part question. I have the same thought with a plist that is hosted externally. This is currently called as follows:-
_content = [[NSArray alloc] initWithContentsOfURL:[NSURL URLWithString:@"pathto.plist"]];
Again, is there a way of checking the header for last update time remotely, and thus only downloading the full file if there has been a change?