Skip to content

Null Char in XML result document #373

@geoffmcl

Description

@geoffmcl

See sf905 created: 2009-03-11 by christophe chenon.

I suggested a patch back then, but for whatever reason it never made it into the code so the bug remained.

Input: cfg -xml

<entry>
<edef>A string of the form &#xdddd or &#dddd</edef>
</entry>

Output: where the tilde, ~, represents a null character.

line 2 column 28 - Warning: unescaped & or unknown entity "&#xdddd"
line 2 column 39 - Warning: entity "&#" doesn't end in ';'
Tidy found 2 warnings and 0 errors!
<entry>
<edef>A string of the form &amp;#xdddd or ~dddd</edef>
</entry>

Strangely, if you add --preserve-entities yes to the config, the output is better -

<entry>
<edef>A string of the form &#xdddd or &#;dddd</edef>
</entry>

Presently working on an improved patch...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions