Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-70

AbstractMarshallerTestCase.testMarshalDOMResult() builds a DOM object that does not retain namespace

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0 M3
    • Fix Version/s: 1.0 M3
    • Component/s: OXM
    • Labels:
      None
    • Environment:
      woodstox wstx-asl 3.0.2
      xerces xercesImpl 2.8.1
      xpp3 xpp3 1.1.3.4.O
      javax.xml.parsers jaxp-api 1.3

      Description

      with the combination of xml procesing libraries listed, the creation of the expected result document in testMarshalDOMResult loses the namespace attribute (xmlns:tns...). For whatever reason, it doesn't get serialized. Adding:

      Attr namespace = expected.createAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:tns");
      namespace.setNodeValue("http://samples.springframework.org/flight");
      flightsElement.setAttributeNode(namespace);

      creates a more valid test case.

        Attachments

          Activity

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              gk5885 Gregory Kick
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: