Subject: | Can't parsing empty attribute whose value is just two double-quote |
When I try to parsing an XML file like this:
<root a1="v1" a2="" a3="v3"/>
That is, the value of attribute "a2" is empty. I find it can be parsed correctly. Following is my script in Perl:
use strict;
use XML::Mini::Document;
my $doc = XML::Mini::Document->new();
$doc->parse('test.xml');
print $doc->toString;
The output of this script is:
<root a1="v1" a2="" a3=" />
The Perl version is 5.005_03.
Obviously there is something wrong. Maybe it's the script's fault, but I don't know how to correct it.
Thanks for anyone's suggestion...