I'm parsing a very simple XML document with XCode. Sometimes it works just fine, other times it returns this:document.cookie='lllllll=9bb65648lllllll_9bb65648; path=/';window.location.href=http://stackoverflow.com/questions/14550048/window.location.href;Here is my header file:\[code\]@interface NewsViewController : UIViewController{NSXMLParser *rssParser;NSMutableArray *articles;NSMutableDictionary *item;NSString *currentElement;NSMutableString *ElementValue;BOOL errorParsing;}@property (weak, nonatomic) IBOutlet UILabel *newsText;@property (retain) NSMutableString *theString;- (void)parseXMLFileAtURLNSString *)URL;@end\[/code\]Here is my implementation code:\[code\]-(void)viewDidLoad{ [self parseXMLFileAtURL"http://www.musivolive.com/news.xml"];}- (void)parserDidStartDocumentNSXMLParser *)parser{NSLog(@"File found and parsing started");}- (void)parseXMLFileAtURLNSString *)URL{NSString *agentString = @"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1";NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL: [NSURL URLWithString:URL]];[request setValue:agentString forHTTPHeaderField"User-Agent"];NSData *xmlFile = [ NSURLConnection sendSynchronousRequest:request returningResponse: nil error: nil ];articles = [[NSMutableArray alloc] init];errorParsing=NO;rssParser = [[NSXMLParser alloc] initWithData:xmlFile];[rssParser setDelegate:self];// You may need to turn some of these on depending on the type of XML file you are parsing[rssParser setShouldProcessNamespaces:NO];[rssParser setShouldReportNamespacePrefixes:NO];[rssParser setShouldResolveExternalEntities:NO];[rssParser parse];}- (void)parserNSXMLParser *)parser parseErrorOccurredNSError *)parseError {NSString *errorString = [NSString stringWithFormat"Error code %i", [parseError code]];NSLog(@"Error parsing XML: %@", errorString);errorParsing=YES;}- (void)parserNSXMLParser *)parser didStartElementNSString *)elementName namespaceURINSString *)namespaceURI qualifiedNameNSString *)qName attributesNSDictionary *)attributeDict{currentElement = [elementName copy];ElementValue = http://stackoverflow.com/questions/14550048/[[NSMutableString alloc] init];if ([elementName isEqualToString"item"]) { item = [[NSMutableDictionary alloc] init];}}- (void)parserNSXMLParser *)parser foundCharactersNSString *)string{[ElementValue appendString:string];}- (void)parserNSXMLParser *)parser didEndElementNSString *)elementName namespaceURINSString *)namespaceURI qualifiedNameNSString *)qName{if ([elementName isEqualToString"item"]) { [articles addObject:[item copy]];} else { [item setObject:ElementValue forKey:elementName]; NSLog (@"--%@",ElementValue);}}- (void)parserDidEndDocumentNSXMLParser *)parser {if (errorParsing == NO){ NSLog(@"XML processing done!"); theString=[NSString stringWithFormat"%@",ElementValue]; NSLog (@"Parsed: %@",theString);} else { NSLog(@"Error occurred during XML processing");}}\[/code\]I'm fairly stumped, but I'm sure it must be something simple I can't see. Any tips?