DTD from structure.
Author: email@example.com (Iain Sharp)
I am trying to create a function to 'snapshot' the current state of data on a client form, allow working, and then if required restore to previous state. the 'simplest' method would seem to be to create a DTD from the structure of the form, use xmlsave to put the data into XML and, if required, do a clear and xmlload to reset the data back wheer you got it from. BUT. 1. Create DTD from structure, doesn't pay attention to entity field lists, only painted fields. So if data in the entity is used but not displayed, that data is thrown away by doing this. 2. DTD creation doesn't allow for 'All fields' as a self maintaining concept, If I create this DTD now, and then later add a field to the model, I have to remember all the DTDs which are supposed to contain all the fields for this entity and go round and edit them manually, (and if you've used the default mapping facility adding a field to a DTD then names it using the 'wrong' entity.) Has anyone got any in house utilities which make the management of DTDs to share data between components less of an outright time consuming menace? Anyone up for a collaborative project? I currently have a form which will produce a default mapping between *FRM and *SSV subtypes or *FRM and main entities, which cuts down on trying to maintain the #defines set up by the component generator.