I would like to get a solution/logic for comparing two xml files using perl?

mahesh

New member
Eg. 1.xml
<project name = "proj1">
<module name = "mod1">
<sub name = "sub1">
<question name = "ques1"></question></sub></module></project>

2.xml
<project name = "proj2">
<module name = "mod2">
<sub name = "sub2">
<question name = "ques2"></question></sub></module></project>

I want to compare these two xml files node by node and if any project name matches then I have to compare the module of that project.(A project can have many modules). and if any module matches in that project then I have to compare the sub in that .(A sub can have many question). and if any sub matches then I have to compare the questions in that. And want to return the unmatched nodes.
Thanks in advance.
Please help me...
I am not using any packages to compare the xml files.
i am creating the xml object using win 32 :: ole only.
 
Back
Top