in reply to comparing xml and producing informative output

Start with XML::SemanticDiff.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
  • Comment on Re: comparing xml and producing informative output

Replies are listed 'Best First'.
Re^2: comparing xml and producing informative output
by jccunning (Acolyte) on Jul 23, 2012 at 19:21 UTC
    XML SemanticDiff works pretty good except I discovered that a child element can be reported as new rogue element in new file if not in same location as old file. Example if old file contains:
    <classes name="Zanoply::AccessLogic"> <all_members name="accessLogic"/> <all_members name="DBUS"/> </classes>
    And new file contains:
    <classes name="Zanoply::AccessLogic"> <all_members name="accessLogic"/> <all_members name="SPR"/> <all_members name="DBUS"/> </classes>
    Then DBUS is reported both as a change in attribute value and new rogue element.