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

XMLEventWriter.add(event) not working properly for no namespace

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • jwsdp-1.4
    • xml
    • b98
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java 5

      ADDITIONAL OS VERSION INFORMATION :
      Windows

      A DESCRIPTION OF THE PROBLEM :
      Input :
      <Request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
      <base xmlns="">

      </base>
      </Request>
      I am using XMLEventWriter in JWSDP 1.6 ,created an XMLEventReader to read the above xml , and added the above read events to a XMLEventWriter.
      For cases where the input is xmlns="" ,the output I am getting is xmlns="null"

      output:
      <Request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
      <base xmlns="null">

      </base>
      </Request>

      can you please confirm whether this bug is anyway related to bug 6337180

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      refer description

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      refer description
      ACTUAL -
      refer description

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      refer description

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      refer description
      ---------- END SOURCE ----------

            duke J. Duke
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: