Hi.
I've done a PDF form with LiveCycle Design to acquire data.
The form save output data in to an XML file (xfa.host.exportData("",0);), and acquire data from saved XML ($host.importData("")), to modify contents before to save it again.
From the original PDF form I've done many new releases: created new fields, deleted old fields, moved fields to other level in to the form structure.
Now, when I load data from an old XML file (saved with previous releases), my form is correctly populated, and I can modify data, but when I save data in a new XML files, in his structure I find again old data in old fields that I've deleted from the form.
More, fields moved to another level (for an example, a field located in a named module, converted to global), is modified but saved in older position, under old module and not in the root.
How can it be? And, more important, how can I correct this problem?
Since the XML data imported from file is kept under "xfa.data." in XML schema tree structure as in the files, it would export in the same way.
PDF forms would not automatically change and convert the tree structure into new definition.
Generally in LCD, when incoming XML structure and form defined XML structure is different, convertion is done using XSLT, but this is only in cases when you always expect this kind of conversions.
For your case it seems that it is only one time solution, and in that case you will probablly need to map old and new schema and convert the structure before you import XML to your new form.