Using XML Files in App Builder


John Clarke
I want to use XML files to store data that will be used by my application.  They will be stored in a folder on the device that the app is on.  How can I process data in these XML files?

DecSoft

Hello John,

Parsing XML is possible, but there is not something out of the box to do it, except the included jQuery library (from a few releases ago included by default), which can parse XML, but using pure Javascript. If you can provide JSON files instead, can be better, since we can deal with JSON files in the same way than with Arrays and Objects variables, something possible and easy than using XML, IMHO.



John Clarke

Hi David,

               Thanks for your reply.  Where can I find a good example that demonstrates how to parse XML using Pure Javascript ?

Thanks in advance.

John


DecSoft

Hello John,

Here are a couple of links:

https://api.jquery.com/jQuery.parseXML/

https://stackoverflow.com/a/7228211/7588436



DecSoft

Hello John,

I completely forget that we already have an "RSS" app sample, which shown how to parse XML using jQuery. You can also take a look at the "RSS2" sample, which uses another possible technique. I just forget these samples, because, certainly, App Builder includes right now up to 172 samples...


Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.