i have 2 xml file
1 st xml file:
2 nd xml file:
first of all i need to compare this 2 xml files
if there is any changes between these Xml Files
i need to receive an E-mail alert . received E-mail should be like this
for (ex)
inserted 2 id
Deleted 1 id
This is my coding, but it's not exactly what i was loooking for
Dim description, filepath
Dim xmlDoc1 = CreateObject("Msxml2.DOMDocument")
xmlDoc1.load("D:406tree.xml") 'file 1
Dim xmlDoc2 = CreateObject("Msxml2.DOMDocument")
xmlDoc2.load("D:406tree_en.xml") 'file 2
Dim ElemList1 = xmlDoc1.DocumentElement.ChildNodes
Dim ElemList2 = xmlDoc2.DocumentElement.ChildNodes
If ElemList1.length = ElemList2.length Then ' check weather both xml file has same number of childnodes
MsgBox("Both XML files have same number of Child nodes")
For i = 0 To ElemList1.length - 1
If ElemList1.item(i).Text = ElemList2.item(i).Text Then
MsgBox("child element:" & i & " is same in both XML files")
Else
MsgBox("child element:" & i & " is not same in both XML files, In XML file 1, The value is:" & ElemList1.item(i).Text & " and In XML file 2, The value is:" & ElemList2.item(i).Text)
End If
Next
End If
is it possible?
i am new to c#
pls help me some 1?
Replies
Know the answer? Post it — somebody with the same question will find it here.