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

Unable to parse XML document that starts with long processing instruction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • xml
    • b92
    • sparc
    • solaris_10

      A SAXParserException is thrown when trying to parse a document that starts with long processing instruction (more than 32 bytes?). If the XML declaration is present, the parser succeeds; any other place where such a PI is inserted is parsed correctly as well.

      A sample file to reproduce the failure is:

      <?xml-stylesheet href="use-the-following-stylesheet.xsl"?>
      <doc></doc>

            spericas Santiago Pericasgeertsen
            spericas Santiago Pericasgeertsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: