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

StAX parser doesn't support XML 1.1

XMLWordPrintable

    • b90
    • generic
    • generic

      JAXP 1.3/1.4 specs require to support XML 1.1 and Namespaces 1.1 (JSR 206 http://jcp.org/en/jsr/detail?id=206). However StAX parser implementation added into JAXP 1.4
      doesn't support XML 1.1 and Namespaces 1.1. Note that XML 1.1 and Java SE 5.0 and higher
      supports Unicode 4.x. XML 1.0 supports Unicode 2.x. To make JAXP and Java SE specs
      and implementation consistent all components of JAXP should better support the same
      versions of XML, Unicode, Namespaces

      Attached test case reports the following message:

      > java XML11StAXTest valid ibm02v01.xml
      Warning: validation is not supported by StAX parser.
      java.lang.IllegalArgumentException: true value of isValidating not supported
      Fatal error: null(1,20): ParseError at [row,col]:[1,20]
      Message: XML version "1.1" is not supported, only XML 1.0 is supported.
      javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,20]
      Message: XML version "1.1" is not supported, only XML 1.0 is supported.
      Test failed!

            sreddysunw Sunitha Reddy (Inactive)
            larbouzo Leonid Arbuzov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: