On 30 June 2017 at 19:44, Matthias Kuhn 🌍 <[email protected]> wrote: > On 06/30/2017 11:32 AM, G. Allegri wrote: >> Normally you start with a schema, and from that create xml. To me it >> sounds pretty hard to keep a schema updated the other way around? As the >> api can always add new/changed parts of xml in it? >> >> >> Even QgsProject won't know if a project is valid until all the delegated >> classes have tried to deserialize their own parts. > > Are you aware of real-world problems that were caused by this? > >> >> I think this is a weak point in QGIS, and it doesn't depend on the >> serialization format obviously. > > I think it's only XML that comes with all these metadescription systems > like DTD and XSD. I haven't seen anything similar for yaml and json.
Also, on a related note - I'd prefer to see more areas of code move to the approach of serializing/deserialising to QVariantMaps and using your recent work on auto converting the maps to XML. It's much less maintenance this way :) Nyall _______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
