Menu

#5 bugfix: double-quote for attribute's value (XML-Mini 1.2.8)

open
nobody
None
5
2003-11-21
2003-11-21
No

Bug Fix
XML-Mini 1.2.8

There is a bug in the parsing code to parse am 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

-----
Note:
The author did not reposnd to me after attempts to make
contact. I report bugs, get no response. I send in bug
fixes, and no response.
So I have now decided to post my bug fixes here for
others to have for them self.

-RG

Discussion

  • Russell E Glaue

    Russell E Glaue - 2003-11-21

    file-patch: Document.pm-1.2.8reg2.diff

     
  • Russell E Glaue

    Russell E Glaue - 2003-11-21

    patched-file: Document.pm-1.2.8reg2

     

Log in to post a comment.