Hi,
I need to compare two xml files. I need to compare only the tags and not the values. If it was only to compare two files, I could use File::compare.
However, for my purpose of comparing only the tags, I somehow will have to extract the words between the < and > and compare each of them with their counterparts ( in the other xml file).
The problem is that the strings in the xml files do not necessarily have spaces in between tags or words. I am having difficulty solving this problem of comparing two xml files. Part of xml file looks like:
<name>Priya</name>
<address> California </address>
I should not compare the values like Priya or California. I just have to compare the structure of the two xml files.
If any one could help me or give some idea, that would be great.
Thanks a lot in advance,
Priyanka
I need to compare two xml files. I need to compare only the tags and not the values. If it was only to compare two files, I could use File::compare.
However, for my purpose of comparing only the tags, I somehow will have to extract the words between the < and > and compare each of them with their counterparts ( in the other xml file).
The problem is that the strings in the xml files do not necessarily have spaces in between tags or words. I am having difficulty solving this problem of comparing two xml files. Part of xml file looks like:
<name>Priya</name>
<address> California </address>
I should not compare the values like Priya or California. I just have to compare the structure of the two xml files.
If any one could help me or give some idea, that would be great.
Thanks a lot in advance,
Priyanka