Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Just another Perl shrine
 
PerlMonks  

Re^3: RegEx Against Arbitrary XML Tags

by Jenda (Monsignor)
on Oct 20, 2011 at 14:11 UTC ( #932668=note: print w/ replies, xml ) Need Help??


in reply to Re^2: RegEx Against Arbitrary XML Tags
in thread RegEx Against Arbitrary XML Tags

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
Enoch was right!
Enjoy the last years of Rome.


Comment on Re^3: RegEx Against Arbitrary XML Tags

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://932668]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2013-05-23 06:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (474 votes), past polls