Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhoneGap XML Parser?

Tags:

cordova

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!

like image 1000
CaspervanDoorn Avatar asked Jun 10 '11 12:06

CaspervanDoorn


People also ask

What is config XML in PhoneGap?

For PhoneGap applications, the Config.xml file defines the apps meta data including icons, splash screens, security and permissions. It isn’t required to have a Config.xml defined to successfully do a build in PhoneGap but you will eventually need to do one to get too far beyond “hello world”.

What do I need to build a PhoneGap website?

To get a basic build working in phonegap, all you really need is a single “index.html” file in the zip file you upload. To access the phonegap API, you can add a reference to the phonegap.js file in the HEAD of your index.html file.

Can I use PhoneGap extensions on other platforms?

These extensions are platform specific but if you plan on using the Adobe PhoneGap build service you can develop on your favored platform, then upload to the PhoneGap build service to build for the other platforms. For PhoneGap applications, the Config.xml file defines the apps meta data including icons, splash screens, security and permissions.

What is PhoneGap Cloud Build Service?

The Adobe PhoneGap cloud build service lets you create an HTML based app, zip it up and the service will create platform specific installers. It supports Android, iOS, Windows Phone, Blackberry, WebOS, and Symbian.


1 Answers

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.

like image 70
Terrance Avatar answered Sep 27 '22 18:09

Terrance