Comparing 2 XML Files using PHP -
i want compare 2 big xml files , retrieve differences. examxml , diffdog do. solution found cycling through child nodes of each file simultaneously , check if equal. have no idea how achieve that... how can loop through child nodes , properties? how can check if first element of first file equal first element of second file, second element of first file equal second element of second file , on?
do yo have better idea compare 2 xml files?
have looked @ using xpath @ all? seems easy way grab of child nodes. you'd able loop through nodes , compare attributes/textcontent.
Comments
Post a Comment