11-06-2009, 04:21 PM
Saket,
Thanks for giving me immediate reply. This code is working fine for comparing of two xml files.I have used XMLUtils code.But one problem what i am facing here is In the XML file which i have uploaded may not contain some tags which is being generated when the file is exported.Now if in a Node in both the files contains same xml tags and if a new tag got generated in the exported file in the node, it is giving as State Added, this is fine but because of this the position of the tags being varied in the nodes and if same tags are present also it is showing as Stae Added.
Uploaded file:
<GoodStudent>Yes</GoodStudent>
<Student100>Yes</Student100>
<DriverTraining>No</DriverTraining>
Exported file:
<DriverTraining>No</DriverTraining>
Here in the exported file the other two tags are not generated, it is fine. But even if driver training is present also it is showing as Driver training added in the result xml.(That means the uploaded file and the exported file will not have same tags)
Please help on this.
Thanks for giving me immediate reply. This code is working fine for comparing of two xml files.I have used XMLUtils code.But one problem what i am facing here is In the XML file which i have uploaded may not contain some tags which is being generated when the file is exported.Now if in a Node in both the files contains same xml tags and if a new tag got generated in the exported file in the node, it is giving as State Added, this is fine but because of this the position of the tags being varied in the nodes and if same tags are present also it is showing as Stae Added.
Uploaded file:
<GoodStudent>Yes</GoodStudent>
<Student100>Yes</Student100>
<DriverTraining>No</DriverTraining>
Exported file:
<DriverTraining>No</DriverTraining>
Here in the exported file the other two tags are not generated, it is fine. But even if driver training is present also it is showing as Driver training added in the result xml.(That means the uploaded file and the exported file will not have same tags)
Please help on this.