title: iPhone TBXML Looping And Parsing Data
body: <p>Basically I have an XML response that is returned and a string, and i need to loops through the xml and store all the information in an array. here is the xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://schema.2sms.com/2.0/schema/0310_ResponseReportStandard.xsd" Version="1.0"&gt;
      &lt;Error&gt;
          &lt;ErrorCode&gt;00&lt;/ErrorCode&gt;
          &lt;ErrorReason&gt;OK&lt;/ErrorReason&gt;
      &lt;/Error&gt;
      &lt;ResponseData&gt;
          &lt;Identification&gt;
              &lt;UserID&gt;jonathan.pink@2sms.com&lt;/UserID&gt;
          &lt;/Identification&gt;
          &lt;Result&gt;2 records were returned&lt;/Result&gt;
          &lt;Detail&gt;
              &lt;ReportTitle&gt;Message Summary: Today&lt;/ReportTitle&gt;
              &lt;Record&gt;
                  &lt;Destination&gt;447790686158&lt;/Destination&gt;
                  &lt;Status&gt;WithNetwork&lt;/Status&gt;
                  &lt;GUID&gt;&lt;![CDATA[2011-03-22T10:54:22.097Z]]&gt;&lt;/GUID&gt;
                  &lt;DateSubmitted&gt;2011-03-22T10:54:22.097&lt;/DateSubmitted&gt;
                  &lt;DateToSend&gt;&lt;/DateToSend&gt;
                  &lt;DateSent&gt;2011-03-22T10:54:22.533&lt;/DateSent&gt;
                  &lt;DateReceived&gt;&lt;/DateReceived&gt;
                  &lt;Message&gt;&lt;![CDATA[Yet again another test]]&gt;&lt;/Message&gt;
                  &lt;ID&gt;2011-03-22 10:54:22.250HIHIIOJTFVETW85TS&lt;/ID&gt;
              &lt;/Record&gt;
              &lt;Record&gt;
                  &lt;Destination&gt;447790686158&lt;/Destination&gt;
                  &lt;Status&gt;SUCCESS&lt;/Status&gt;
                  &lt;GUID&gt;&lt;![CDATA[2011-03-22T10:50:40.064Z]]&gt;&lt;/GUID&gt;
                  &lt;DateSubmitted&gt;2011-03-22T10:50:40.063&lt;/DateSubmitted&gt;
                  &lt;DateToSend&gt;&lt;/DateToSend&gt;
                  &lt;DateSent&gt;2011-03-22T10:50:42.473&lt;/DateSent&gt;
                  &lt;DateReceived&gt;2011-03-22T10:50:54.570&lt;/DateReceived&gt;
                  &lt;Message&gt;&lt;![CDATA[This is a test]]&gt;&lt;/Message&gt;
                  &lt;ID&gt;2011-03-22 10:50:40.210DRUDVMCEZGETW85TS&lt;/ID&gt;
              &lt;/Record&gt;
              &lt;ReportPage ReportID="775797" ItemsPerPage="25" Page="1" TotalItems="2" /&gt;
          &lt;/Detail&gt;
      &lt;/ResponseData&gt;
  &lt;/Response&gt;
  </code></pre>
  
  <p>I need those 2 <code>&lt;records&gt;</code> and all there data to be stored in an array. so....</p>
  
  <p>an records array -> array of records -> array of each records, data....</p>
  
  <p>I have been sitting here trying to work this out using TBXML which is easy enough to grab a single node.... but I can't do this :( </p>