Search code examples
iphoneobjective-cxmlxcodeflurry

Iphone app XML reading


I'm making an iphone app in xcode that has to be able to read xml retrieved from the web. It works with every xml ive tried except this one. What's wrong with it?

<appMetrics versionName="1.1.0" startDate="2013-04-16" metric="ActiveUsersByDay" groupBy="dayOfYear" endDate="2013-04-18" country="US" version="1.0" generatedDate="4/19/13 10:10 AM">
<day value="6" date="2013-04-16"/>
<day value="4" date="2013-04-17"/>
<day value="2" date="2013-04-18"/>
</appMetrics>

Solution

  • The problem was that when I entered the URL in a browser, it would give me a XML, but when in xcode it would give me a JSON. I just had to request it in XML format.