|
|
| Just another Perl shrine | |
| PerlMonks |
Re^3: RegEx Against Arbitrary XML Tagsby Jenda (Monsignor) |
| on Oct 20, 2011 at 14:11 UTC ( #932668=note: print w/ replies, xml ) | Need Help?? |
|
The catch is that to know one element was deleted and a new one was added you need to know which attribute or subelement is the key. Which is a piece of information the diff doesn't have. For the same reason the diff engine cannot handle reordered elements the way you seem to want. I do not think a generic solution is possible and it's hard to give you a specific solution as we do not know your XML. Jenda
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||