Hoping someone can help this newbie.
I have a program that allows me to create the fields which will allow me to collect data which I can export as xml.
I have a Word 2007 dotx which I have 200 - 300 content controls which I have mapped to the xml file using '2007 Content Control Toolkit'. I run the word template and all is fine - data appears where I'd expect. This completes a report for my customers.
I then collect new data and export in xml. I have read how to change the word.dotx to a zip file, and replace the 'item1.xml' with my new xml file which I have also named 'item1.xml'.
I then run the dotx and find it has become a mish-mash of both old and new data in the content control spaces. It seems to update/over-write if I have new data, but if there was no new data collected in some fields (they were left blank for example), the old data remains behind.
Can anyone suggest what I can do? It seems I have either more work to do than simply replacing the existing 'item1.xml' file or I need to be able to 'flush' away the previous data before applying the new 'item1.xml'.
Any help would be greatly appreciated, thank you.