PhoneGap XML解析器? [英] PhoneGap XML Parser?

查看:96
本文介绍了PhoneGap XML解析器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一个真正长时间的XML解析器可用于PhoneGap。是否有使用此 http:// www。解析器在我的PhoneGap应用程序或有一种方法,使其兼容。请帮助!

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!

推荐答案

Phonegap的经验法则:大部分你可以在浏览器中做的任何事情使用Javascript ,您可以在Phonegap 使用Javascript 中执行一些不错的API调用。 请参阅Phonegap API文档 Phonegap社区插件库(注意,如果你绝对需要一些额外的功能,从iPhone或Android或任何平台的repo将是它的地方去问)。

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).

所以Javascript XML是你要找的。

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

或者,如果您有格式选项, JSON 可能是你最好的选择。

Or alternatively if you have options for formats, JSON is probably your best bet.

这篇关于PhoneGap XML解析器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆