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

XMLWordPrintable

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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: