**[Rajeev Bahuguna](https://jira.spring.io/secure/ViewProfile.jspa?name=rbahuguna)** opened **[SPR-11477](https://jira.spring.io/browse/SPR-11477?redirect=false)** and commented The method org.springframework.util.xml.XmlValidationModeDetector::hasOpeningTag should have this: return (openTagIndex > -1 && content.length() > (openTagIndex+1) && Character.isLetter(content.charAt(openTagIndex + 1))); in place of the current: return (openTagIndex > -1 && content.length() > openTagIndex && Character.isLetter(content.charAt(openTagIndex + 1))); --- **Affects:** 3.2.8, 4.0.2 **Referenced from:** commits https://github.com/spring-projects/spring-framework/commit/1763bfbad04704f4a38290f371119a3544f7546b, https://github.com/spring-projects/spring-framework/commit/69c54a053cc2e2141e94b58923aec0f16151a842 **Backported to:** [3.2.9](https://github.com/spring-projects/spring-framework/milestone/97?closed=1)