0

Im making a fairly big game for Mac appstore, and i would like to control my levels using XML. Basically I just need to be able to read co-ordinates out of the XML document and into cocoa, where I can use them to move objects for each level. How do i parse this file in cocoa?

Thanks for your help

Conor Taylor
  • 2,998
  • 7
  • 37
  • 69
  • What precisely is your question? – Shaggy Frog Apr 01 '11 at 05:41
  • how do i parse the file in cocoa? – Conor Taylor Apr 01 '11 at 05:47
  • 2
    Possible duplicates: [1](http://stackoverflow.com/questions/2237757/cocoa-objective-c-best-practice-to-parse-xml-document) [2](http://stackoverflow.com/questions/1072979/how-do-i-read-and-write-xml-in-cocoa-touch) [3](http://stackoverflow.com/questions/2706698/objective-c-desktop-xml-file-web-page-to-nstableview) [4](http://stackoverflow.com/questions/2964503/nsxmlparser-on-the-iphone-how-do-i-use-it-given-a-xml-file-newb-here) [5](http://stackoverflow.com/questions/1089737/parsing-xml-in-cocoa) [6](http://goo.gl/43aDe) [...](http://goo.gl/09gm8) – jscs Apr 01 '11 at 05:56
  • Please search for existing questions before posting. There are already a zillion related questions here on Stack Overflow, and I'm sure that at least one of them will help you. – Shaggy Frog Apr 01 '11 at 09:47

1 Answers1

4

NSXML should have everything you need to get started.

David Brown
  • 13,336
  • 4
  • 38
  • 55