Skip Menu |

This queue is for tickets about the XML-Mini CPAN distribution.

Report information
The Basics
Id: 12790
Status: resolved
Priority: 0/
Queue: XML-Mini

People
Owner: Nobody in particular
Requestors: zytu_zju [...] yahoo.com.cn
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



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...
Now outputs <root a1="v1" a2="" a3="v3" /> in 1.38. Thanks.