2 006Cbm5ubm53bm53...">

Parsing XML in Objective C

NSString * myxml=@"<ticketRequestOut>
  <ticketsCount>2</ticketsCount>
  <tickets>
    <ticket>
      <ticketData>006Cbm5ubm53bm53bndub</ticketData>
      <ticketId>6</ticketId>
    </ticket>
    <ticket>
      <ticketData>00BCbndub8</ticketData>
      <ticketId>7</ticketId>
    </ticket>
  </tickets>
</ticketRequestOut>";

      

How can I parse this string in Objective-C? Please help me.

-1


a source to share


2 answers


Your string does not look like XML, but XML can be parsed into Objective-C using the methods implemented by NSXMLParser.



+2


a source


Read the documentation .



0


a source







All Articles