title: Using NSXMLParser to parse xml with html inside nodes
body: <p>I am trying to read a xml-file with internal html to show in a UIWebView.</p>
  
  <p>I am using NSXMLParser to parse an incoming XML-file. Works like charm. However now I want to parse HTML that is included in the tags.</p>
  
  <p>For instance this is parsed just fine:</p>
  
  <pre><code>&lt;item&gt;
     &lt;letter&gt;a&lt;/letter&gt;
     &lt;word&gt;word 1&lt;/word&gt;
     &lt;description&gt;Yada yada&lt;/description&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p>However this is making the parser crash:</p>
  
  <pre><code>&lt;item&gt;
     &lt;letter&gt;a&lt;/letter&gt;
     &lt;word&gt;word 1&lt;/word&gt;
     &lt;description&gt;&lt;p&gt;Yada&lt;/p&gt;&lt;/description&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p>since the parser thinks it should translate <p> as xml-nodes obviously.</p>
  
  <p>How could I change my parsing to handle internal html?</p>
  
  <p>The code used in my class to parse the xml handles these nodes on method foundCharacters</p>
  
  <pre><code>- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string{
      // save the characters for the current item...
      if ([currentElement isEqualToString:@"letter"]) {
          [currentLetter appendString:string];
      } else if ([currentElement isEqualToString:@"word"]) {
          [currentWord appendString:string];
      } else if ([currentElement isEqualToString:@"description"]) {
          [currentDescription appendString:string];
      }
  
  }
  </code></pre>
  
  <p>And this on didEndElement</p>
  
  <pre><code>- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName{     
      if ([elementName isEqualToString:@"item"]) {
          // save values to an item, then store that item into the array...
          [item setObject:currentLetter forKey:@"letter"];
          [item setObject:currentWord forKey:@"word"];
          [item setObject:currentDescription forKey:@"description"];
  
          [stories addObject:[item copy]];
      }
  
  }
  </code></pre>