Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Compare two XML files, when one file is Uploaded File and the Other is Exporte
#2
Not Solved
Hi,

Code:
Set Dc1 = CreateObject(”Msxml2.DOMDocument”)
Dc1.load(”filepath”)’file 1
Set Dc2 = CreateObject(”Msxml2.DOMDocument”)
Dc2.load(”filepath”)’file 2
Set List1= Dc1.DocumentElement.ChildNodes
Set List2= Dc2.DocumentElement.ChildNodes
If List1.length=List2.length Then’
  msgbox “Put your required one"

   For i = 0 to List1.length-1

       If List1.item(i).Text=List2.item(i).Text Then
          msgbox “Both are same"
      Else
         msgbox “Not same"
     End If
  Next
End If
Reply


Messages In This Thread
RE: How to Compare two XML files, when one file is Uploaded and the Other is Exporte - by venkatbatchu - 10-24-2009, 04:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  File Chooser on Chrome doesn't work - UFT 15.0.1 Nenna Rosa 1 3,674 10-31-2020, 01:16 PM
Last Post: Ankur
  File Pointers Reset When Using Subroutines zunebuggy 0 874 08-19-2020, 07:45 PM
Last Post: zunebuggy
  How to export the output value of a webedit object to a new excel file. mounika6677 1 1,541 04-14-2019, 05:18 PM
Last Post: mounika6677
  Invalid file error importing xls file Makhado 0 1,432 10-04-2018, 04:33 PM
Last Post: Makhado
  Access not saved excel file randhirsinghskhn 0 1,047 09-04-2018, 07:26 AM
Last Post: randhirsinghskhn

Forum Jump:


Users browsing this thread: 4 Guest(s)