Reputation: 3
I'm a newbie in Phonegap. Does anyone have any idea how I can display my XML data by page on a Phonegap app. For example, on one page, it would be a post and there will be a button to the next post like in the XML.
Below is my XML data. Is there any tutorials or so on this?
<post>
<new>
<picture>http://placehold.it/350x250</picture>
<name>post name 1</name>
<info>More info here. Such as post content</info>
<moreinfo>Deeper information </moreinfo>
<mix>Some info</mix>
<mixinfo>Choice of 2,3,4 Bedrooms</mixinfo>
</new>
<new>
<picture>http://placehold.it/350x250</picture>
<name>post name 2</name>
<info>Post Name 2</info>
<moreinfo>Infomation here</moreinfo>
<mix>Mix it up</mix>
<mixinfo>Information of more information</mixinfo>
</new>
</post>
Upvotes: 0
Views: 1336
Reputation: 990
All modern browsers have a built-in XML parser.
An XML parser converts an XML document into an XML DOM object - which can then be manipulated with JavaScript.
You can do this with by your own or with jQuery.
Upvotes: 1