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

sjsxp issue 49: Repairing XMLStreamWriter tries to use default namespace for attributes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 6
    • xml
    • h1184
    • generic
    • generic
    • Verified

        It looks like the repairing writer does not consider the fact that attributes
        newer use default namespace (ie. if attribute has no prefix, it is not in any
        namespace, independent of there is a default namespace binding or not), and
        instead of assumes default namespace does apply to attributes.
        A demonstration of this can be found from StaxTest (available from
        http://stax.codehaus.org), test TestRepairingWriter#testAttributes.
        (I can try to come up with a shorter snippet too, but this should be easy enough
        to reproduce)

              joehw Joe Wang
              joehw Joe Wang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: