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


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.