Subject: | Tag with empty content error (<p></p>) |
use strict;
use XML::Diff;
my $diff = XML::Diff->new();
my $diffgram = $diff->compare(
-old => "<p></p>",
-new => "<p> some text </p>",
-asString=>1,
);
will give us error
Can't call method "nodePath" on an undefined value at XML/Diff.pm
line 1509.
-------------------------------------
$ perl -v
This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
$ cat /etc/issue
Debian GNU/Linux 4.0 \n \l