XMLEventWriter writes out extra namespace declarations

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 6
    • Affects Version/s: 1.0.1
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: