Question

I have a task to create a website that'll allow creating small websites, mostely simple html (add some text, picture positioning, buttons). So I've come up with solution to save progress the way described below. I'll create some hierarchy of classes with some properties (like Location and size, color, font) wich will be serizlized into xml and saved into my remote database. When loading it, it'll just pasre back and create GUI for user. So, am I doing this right, or there is some easier way to do this? Thanks in advance!

Was it helpful?

Solution

If you already have a solution that allows you to output HTML, why don't you just save that? If you're the one outputting the markup you can keep it strict*, which will make it easier to parse back.

*Or, you could even use custom attributes to make parsing simpler.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top