XForms: how to deal with instance data that changes?

201 Views Asked by At

At the moment I am working on an XForms application to mutate XML data. This data comes from a local XML file. The file is exported from another application in a static way and read into the application. The problem is that every time the data changes (the XML structure remains the same). How can I fix this in XForms? I use XSLTForms in my application.

1

There are 1 best solutions below

0
On

XSLTForms cannot directly access local data files because Javascript is never allowed to do that for security reasons.

For a local only treatment, it's always possible to run a local HTTP server which can be minimal.

If the data file is changing independantly, there is another problem: according to the client-server architecture, XForms can only periodically try to check the file contents.

-Alain