Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8334915

JAXP implementation does not validate NMTOKEN correctly

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      In our project we generate NMTOKENs which are valid (except for some corner cases which are irrelevant here) according to specification from w3c, but the validation in class XMLChar (org.apache.xerces.util.XMLChar#isValidNmtoken) from internal JDK JAXP implementation does not recognize them as valid. One example: "AIJ" ("A" + 0x132) (0x132 in #xF8-#x2FF range)

      According to JavaDoc of the method it should validate exactly what is specified.


      FREQUENCY : always


            joehw Joe Wang
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: