I've been searching a really really long time for an XML Parser usable with PhoneGap. Is there a way to use this http://www.edumobile.org/iphone/iphone-programming-tutorials/parsing-an-xml-file Parser in my PhoneGap App or is there a way to make it compatible. Please help!
Asked
Active
Viewed 1.1k times
5
-
You should use javascript xml parsing. I think PhoneGap use javascript. – Muhammad Zeeshan Jun 10 '11 at 12:59
-
What are you trying to do exactly? Do you use PhoneGap to develop an iPhone app, so you are using an javascript framework, not native right? – murat hacioglu Jun 10 '11 at 13:04
1 Answers
6
Rule of thumb about Phonegap: for the most part anything you can do in the browser using Javascript, you can do in Phonegap using Javascript with a couple of nice bonus API calls. See Phonegap API Doc and Phonegap community plugin repository (Note if you absolutely need some additional functionality from iPhone or Android or whatever platform the repo would be the place to go asking about it).
So Javascript XML is what you are looking for.
- An introduction to parsing xml in javascript
- Explaination of xml parsing natively with javascript
- A list of xml parsing javascript librarys
Or alternatively if you have options for formats, JSON is probably your best bet.