     NSXMLParser <span>(1)</span>
          </a>
       
          <a href="/tags#错误编码是31" title="访问错误编码是31" data-hover="错误编码是31">
          错误编码是31 <span>(1)</span>
          </a>
      
      
      
     
</p>
<div class="highlighter-rouge"><pre class="highlight"><code>/取XML文件的前40个字节
        NSData * xmldata = [self.ItemData subdataWithRange:NSMakeRange(0,40)];
 
        //以UTF-8编码进行解码
        NSString *xmlstr = [[NSString alloc] i