encoding/xml decoder with Strict=false does not handle unknown character entities properly
75 views
Skip to first unread message
Denis Defreyne
unread,
Mar 30, 2012, 5:58:28 PM3/30/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golan...@googlegroups.com
Hi all,
I have found some odd behavior of the XML parser in Go. When setting Strict to false (so that it doesn’t error on unknown character entities), the trailing ';' character is not appended when it should be. For example, when parsing "Hello Bye", the actual data is "Hello Bye". A test case can be found at https://gist.github.com/2255738.