double-quote for attribute's value (XML-Mini 1.2.8)
Status: Beta
Brought to you by:
psychogenic
Bug Fix
XML-Mini 1.2.8
There is a bug in the parsing code to parse an element
correctly which has a double-quote as the value for an
attribute in an element.
I have attached a patch to XML::Mini::Document which
will fix this bug.
The bug is described as follows:
<az>
<bz a="1" b="" c="2" d="" e="3" f="4"/>
</az>
parses as:
az = [
a = '1',
b = '" c=',
d = '" e=',
f = '4',
]
bug fix - fixed to parse as:
az = [
a = '1',
b = '',
c = '2',
d = '',
e = '3',
f = '4',
]
Apply the file-patch (Document.pm-1.2.8reg2.diff) to
XML/Mini/Document.pm
or copy the patched-file (Document.pm-1.2.8reg2) over
XML/Mini/Document.pm
file-patch diff XML/Mini/Document.pm 1.2.8reg2
patched-file XML/Mini/Document.pm 1.2.8reg2
Logged In: YES
user_id=847868
In the example I originally provided, it is an inexact
illustration of the bug - but I think you get an
understanding of the problem.
The patch I provided does fix the double-quoted-empty-value
bug, regardless of how bad my bug illustrations are.
-RG