Menu

#1 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 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

Discussion

  • Russell E Glaue

    Russell E Glaue - 2003-11-21

    file-patch diff XML/Mini/Document.pm 1.2.8reg2

     
  • Russell E Glaue

    Russell E Glaue - 2003-11-21

    patched-file XML/Mini/Document.pm 1.2.8reg2

     
  • Russell E Glaue

    Russell E Glaue - 2003-11-21

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.