encoding/xml: decoding XML with entities not supported #35389
Labels
ExpertNeeded
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I parsed the XML with the entity, but the part with the entity was not parsed (the entity value is in the DTD).
I checked the documentation and set
xml.Decoder.Strict
to false. What appears is the entity itself, not the value of the entity.This is my program:
https://play.golang.org/p/pxIrus-iW8b
What did you expect to see?
What did you see instead?
When d.Strict = true, there is nothing.
When d.Strict = false, output:
The text was updated successfully, but these errors were encountered: