Afternoon,
Some background info for you. I have two XML Files. The first being an initial capture of a databases tables, columns (including names and datatype). The second is the same but taken 30 minutes later.
My obective is to compare these two files to see what changes, if any, have been made to the databases tables and columns, store each change and then email these changes to an administrator for review.
For example say my two XML files are the ones below:
XML 1
XML 2 (generated 30mins later)
What I want the code I create to do is to go through each element and check it against the other. So in the samples above it would return the fact the first table name has changed to 'BINS' from 'BIN'. It would then continue through the document storing any further differences it finds. This would then be stored in a string perhaps which I can format so its not just one line of characters.
I would then email these difference but I know how to do that bit.
I cant get my head round how I would do that so would appreciate any help.
Thanks
Some background info for you. I have two XML Files. The first being an initial capture of a databases tables, columns (including names and datatype). The second is the same but taken 30 minutes later.
My obective is to compare these two files to see what changes, if any, have been made to the databases tables and columns, store each change and then email these changes to an administrator for review.
For example say my two XML files are the ones below:
XML 1
VB.NET:
<dataset>
<table name="BIN">
<column name="POL_EXP_DATE" type="DATE"></column>
<column name="POL_CANC_DATE" type="DATE">
</table>
<table name="TITLE_MRC">
<column name="FORM_NAME" type="VARCHAR2">
</table>
</dataset>
XML 2 (generated 30mins later)
VB.NET:
<dataset>
<table name="BINS">
<column name="POL_EXP_DATE" type="DATE"></column>
<column name="POL_CANC_DATE" type="DATE">
</table>
<table name="TITLE_MRC">
<column name="FORM_NAME" type="VARCHAR2">
</table>
</dataset>
What I want the code I create to do is to go through each element and check it against the other. So in the samples above it would return the fact the first table name has changed to 'BINS' from 'BIN'. It would then continue through the document storing any further differences it finds. This would then be stored in a string perhaps which I can format so its not just one line of characters.
I would then email these difference but I know how to do that bit.
I cant get my head round how I would do that so would appreciate any help.
Thanks