I am creating an XML based application in which I have to fetch data from XML and show on iPhone. I have a url through which the data is being fetched. But I don’t know how to create the API method for XML parsing.
How can I create an API method for determining the data returned by the url is in XML format or in JSON format?
Look at Apple’s XMLPerformance project for sample code.