NSXMLParsing用于特定标记值

时间:2011-03-15 08:25:31

标签: iphone nsxmlparser

  

可能重复:
  NSXMLParsing for particular tag value

嗨,我的xml文件......

     <routes> 
         <SourceCountry> Ireland </SourceCountry> 
         <SourcePort> Larne </SourcePort> 
         <DestinationCountry> UK< /DestinationCountry> 
         <DestinationPort> Troon  </DestinationPort> 
     </routes> 
     <routes> 
         <SourceCountry> Ireland </SourceCountry> 
         <SourcePort> Larne </SourcePort> 
         <DestinationCountry> UK </DestinationCountry> 
         <DestinationPort >Cairnryan  </DestinationPort>
     </routes> 
     <routes> 
         <SourceCountry> France </SourceCountry> 
         <SourcePort> Belfast </SourcePort> 
         <DestinationCountry> UK </DestinationCountry> 
         <DestinationPort> Birkenhead  </DestinationPort> 
     </routes> 
     <routes> 
         <SourceCountry> France </SourceCountry> 
         <SourcePort> Belfast </SourcePort> 
         <DestinationCountry> UK </DestinationCountry> 
         <DestinationPort> Heysham  </DestinationPort> 
     </routes> 

我想解析<SourceCountry> == 爱尔兰<DestinationCountry> == 英国的特定数据 请帮帮我

提前谢谢

0 个答案:

没有答案