Hi,
I'm a beginner to Perl and have to write a script to compare 2 XML files and highlight the differences. The problem thatI have is that the tags used are the same throughout the file
As seen from the file structure, there can be any number of elements within the <zone>. ...</zone> tab. I need to individually extract them and compare it against another file of the same structure. I've no idea how to go about this so ur help would be greatly apprecicated.
Thanks
FILE STRUCTURE:
===============
<zone> <zone abc> <vertex x= "332" y="425"> <vertex x= "332" y="425"> <vertex x= "3032" y="2425"> <vertex x= "3032" y="2425"> </zone abc> <zone category = "000" value = "text"> </zone category> </zone> <zone> <zone abc> <vertex x= "336" y="225"> <vertex x= "336" y="225"> <vertex x= "1332" y="4125"> <vertex x= "1332" y="4125"> </zone abc> <zone category = "001" value = "image"> </zone category> </zone>";
20040115 Edited by Corion: Fixed formatting
In reply to Comparing XML files using Perl script by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |