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

XMLStreamWriter.writeStartElement() doesn't behave according to java doc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 1.0
    • xml
    • b84
    • generic
    • generic

      http://download.java.net/jdk6/docs/api/index.html says

      writeStartElement(prefix, localName, namespaceURI) writes <prefix:localName xmlns:prefix="namespaceURI"> if namespaceURI is unbound(in both reparing and non-repairing cases). See the html table in the java doc. But the namespace attribute is not written for this call in stax FCS(which is integrated into JAXWS workspace). Attaching the sample program that produces it.

      For e.g:

      writer.writeStartElement("soapenv", "Envelope", "http://dummy")

      produces only <soapenv:Envelope> instead of <soapenv:Envelope xmlns:soapenv="http://dummy">

            jsuttorsunw Jeff Suttor (Inactive)
            jkotamra Jitendra Kotamraju (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: