Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MynEz

macrumors newbie
Original poster
Jan 13, 2011
13
0
Regina,Sask
Hi, I need to parse the XML data like this, I don't know how can I parse this data. Actually It is the plist data. I need to load or parse this data (plist's file) from url. If somebody knows how to do this please help me.


Thank you

Code:
<dict>
    <key>Rows</key>
    <array>
      <dict>
        <key>Title</key>
        <string>#TEXT TEXT TEXT</string>
        <key>Children</key>
        <array>
          <dict>
            <key>Title</key>
            <string>#TEXT-ROW1</string>
            <key>Children</key>
            <array>
              <dict>
                <key>Title</key>
                <string>#TEXT-ROW2</string>
                <key>Children</key>
                <array>
                  <dict>
                    <key>Title</key>
                    <string>TEXT TEXT TEXT TEXT</string>
                  </dict>
 
A plist that has been written from iOS or MacOS X can be read on those OSes using [NSDictionary dictionaryWithContentsOfFile] or the similar method in NSArray. You don't have to explicitly parse the XML.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.