I need to enter data into a mysql database from an xml file. I have no problem with regard to entering and updating data.
my problem is with the deletion of data in the database when no longer exists in the xml file.
how do I know which data do not exist anymore in the xml file and delete them in the db?
Thanks!
if you have a common identifier, exists in both XML and db, it's a piece of cake:
Either:
Or: use a field in the table to flag that a row has been modified from the data in the xml file.