title: Parsing a URL from XML with &amp; in it
body: <p>I am trying to parse a URL with an <code>&amp;amp;</code> in the URL:</p>
  
  <pre><code>ViewArticle.dbml?DB_OEM_ID=1800&amp;amp;ATCLID=3664162
  </code></pre>
  
  <p>..but using NSXMLParser, all i get is <code>1800ATCL</code>. It completely ignores the <code>&amp;amp;</code>.</p>
  
  <pre><code>- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict
  {
      if (qName) {
          elementName = qName;
      }
  
  
      if ([elementName isEqualToString:@"title"]) {
          self.contentOfCurrentNewsProperty = [NSMutableString string];
      }else if ([elementName isEqualToString:@"link"]){
          self.contentOfCurrentNewsProperty = [NSMutableString string];
      }else {
          self.contentOfCurrentNewsProperty = nil;
      }
  }
  
  - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName
  {     
      if (qName) {
          elementName = qName;
      }
  
      _currentElement = elementName;
  
      if ([elementName isEqualToString:@"title"]) {
          self.currentNewsObject.title = self.contentOfCurrentNewsProperty;
      } else if ([elementName isEqualToString:@"link"]){
          self.currentNewsObject.link = self.contentOfCurrentNewsProperty;
      }
  }
  
  - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string
  {
      if (self.contentOfCurrentNewsProperty) {
          [self.contentOfCurrentNewsProperty appendString:string];
      }
  }
  </code></pre>
  
  <p>Any ideas? Thanks</p>
  
  <p><strong>Edit:</strong> I did a little more testing and the line <code>&lt;?xml version="1.0" encoding="windows-1252"?&gt;</code>
  is what is messing it up, but this is embedded in the xml file, any way to get around it?**</p>