Skip to content

Incorrect getText() after parsing the DOCDECL section #194

Closed
@belingueres

Description

@belingueres

In plexus-utils 3.4.1 and 3.4.0, the text inside the DOCDECL section is incorrectly parsed:
In this XML file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document [
<!ENTITY flo "&#x159;">
<!ENTITY myCustomEntity "&flo;">
]>
<document>&myCustomEntity;</document>

the getText() call after parsing the DOCDECL token should be:

 document [
<!ENTITY nbsp   "&#160;"> <!-- no-break space = non-breaking space, U+00A0 ISOnum -->
<!ENTITY Alpha    "&#913;"> <!-- greek capital letter alpha, U+0391 -->
<!ENTITY tritPos  "&#x1d7ed;"> <!-- MATHEMATICAL SANS-SERIF BOLD DIGIT ONE -->
<!ENTITY flo "&#x159;">
<!ENTITY myCustomEntity "&flo;">
]

but was: &#x159;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions