DEV Community

Discussion on: HTML App builder

Collapse
 
bauripalash profile image
Palash Bauri 👻

You can programmatically create XML schema for each component with information such as X,Y,Z coordinates, text, color etc etc and save the data to database.

Again when loading from database you can use a xml parser to tell components where to put themselves , what text or color to put in...

Something like that may work.

Thread Thread
 
navdeeptanwar26 profile image
Navdeep Tanwar

But I have to make API for the app to load style , I can't send XML

Thread Thread
 
bauripalash profile image
Palash Bauri 👻

Instead of XML you can use JSON

Thread Thread
 
navdeeptanwar26 profile image
Navdeep Tanwar

yea exactly
but question is how to render and save :)

Thread Thread
 
bauripalash profile image
Palash Bauri 👻

When you fetching and rendering, you may need to write a parser.