Fixing JIRA Bug #1016: http://nagoya.apache.org/jira/browse/XERCESJ-1016
Fixing JIRA Bug #1016:
http://nagoya.apache.org/jira/browse/XERCESJ-1016

Before scanning data we assert that the number of characters
left in the current entity is at least as long as the end
delimiter for the structure. Previously if the number of
characters left in the entity was equal to the delimeter
length we incorrectly flagged this as an error.


git-svn-id: 21df804813e9d3638e43477f308dd0be51e5f30f@320114 13f79535-47bb-0310-9956-ffa450edef68

ronsigal/xerces,RackerWilliams/xercesj,RackerWilliams/xercesj,ronsigal/xerces,jimma/xerces,jimma/xerces,ronsigal/xerces,jimma/xerces,RackerWilliams/xercesj