NAME XML::Diff -- XML DOM-Tree based Diff & Patch Module SYNOPSIS my $diff = XML::Diff->new(); # to generate a diffgram of two XML files, use compare. # $old and $new can be filepaths, XML as a string, # XML::LibXML::Document or XML::LibXML::Element objects. # The diffgram is a XML::LibXML::Document by default. my $diffgram = $diff->compare( -old => $old_xml, -new => $new_xml, ); # To patch an XML
![XML::Diff](https://cdn-ak-scissors.b.st-hatena.com/image/square/c4a607b5430575638fd9a7f233e073d867af4bb7/height=288;version=1;width=512/https%3A%2F%2Fmetacpan.org%2Fstatic%2Fimages%2Fdots.png)