JSON - XML convertor that extends enketo-core
enketo / enketo-json Goto Github PK
View Code? Open in Web Editor NEWJSON - XML convertor that extends enketo-core
License: Apache License 2.0
JSON - XML convertor that extends enketo-core
License: Apache License 2.0
reported by Varun:
toXml method raises an error whenever the form to be filled is a new instance that is fully blank; i.e if the form is fully blank with no values (either hidden or loaded - JSON attached) present, this line in storage-dristhi raises an error as the constructed XML document resembles this snippet - .
from Maimoona:
After spending few hours on the issue I found a solution (or workaround) to get forms working on android 4.4 too.
In 4.4 device, XMLSerializer#serializeToString throws exception if it finds any invalid node value which was being ignored or handled internally somewhere in earlier versions. Dont know if its an issue with my form.json/model/form.xml but it was causing enketo.js throw exception.
Adding a if check in code (grayed text in code below) made my forms and application work.
else a("Repeat (subform) is missing bind_type.");if(m.find("instance>:first")[0]==undefined){return "";} return(new XMLSerializer).serializeToString(m.find("instance>:first")[0])
@kirang20 I think it would be good to add this here (in the README.md e.g) or do you have a public page somewhere that I can link to?
Feel free to add it! ;)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.