fixes #537 corrects case-sensitive entity unescape

This commit is contained in:
John J. Aylward 2020-07-20 18:38:35 -04:00
parent e0a6c2ef34
commit e18f42becc

View File

@ -167,7 +167,7 @@ public class XMLTokener extends JSONTokener {
// if our entity is an encoded unicode point, parse it.
if (e.charAt(0) == '#') {
int cp;
if (e.charAt(1) == 'x') {
if (e.charAt(1) == 'x' || e.charAt(1) == 'X') {
// hex encoded unicode
cp = Integer.parseInt(e.substring(2), 16);
} else {