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

XMLEventWriter writes out extra namespace declarations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 1.0.1
    • xml
    • b90
    • generic
    • generic

      Output of the attached pgm:
      <?xml version="1.0" encoding="utf-8"?><!DOCTYPE document SYSTEM "./ExternalDTD.dtd" [
      <!ENTITY max "Substituted text">
      ]><!-- ExternalDTD throws a Negative array size Exception when
      trying to parse with the above DTD reference AND an entity declaration--><document>
              <title>The Publishers </title>
              <publisher>
              Alfred Publishing
              15535 Morrison
              South Oaks CA 91403
              &max;
              </publisher>
              <book price="$100" author="Herold" number="no_11">eXtensible Markup Language</book>
              <bookurn xmlns="urn:loc.gov:books" xmlns:isbn="urn:ISBN:0-395-36341-6" xmlns:isbn="urn:ISBN:0-395-36341-6" xmlns="urn:loc.gov:books"></bookurn>
              <pb></pb>
              <pages></pages>

      'bookurn' elements gets double namespace declarations which causes well-formedness error.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: