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

Add namespaceMappings property to CastorMarshaller


    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.1
    • Component/s: OXM
    • Labels:


      See the Castor 1.2 API for the Marshaller class (http://castor.codehaus.org/javadoc/org/exolab/castor/xml/Marshaller.html).

      The Marshaller class has a setter method setNamespaceMapping(java.lang.String nsPrefix, java.lang.String nsURI).

      By using this method, namespaces are added to the root of the XML document (and not recursively to all elements in the tree). This leads to a much cleaner (and shorter) XML-file.

      Currently the Spring OXM CastorMarshaller class does not support setting the namespaceMapping, and therefore subclassing is necessary. It would be nice if a property namespaceMappings is added, which can be used to add the namespace prefixes.

        Issue Links


          fbascheper Erik-Berndt Scheper created issue -
          arjen.poutsma Arjen Poutsma made changes -
          Field Original Value New Value
          Fix Version/s 1.5.1 [ 10917 ]
          arjen.poutsma Arjen Poutsma made changes -
          Link This issue depends on SWS-287 [ SWS-287 ]
          arjen.poutsma Arjen Poutsma made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          arjen.poutsma Arjen Poutsma made changes -
          Status Resolved [ 5 ] Closed [ 6 ]


            • Assignee:
              arjen.poutsma Arjen Poutsma
              fbascheper Erik-Berndt Scheper
            • Votes:
              1 Vote for this issue
              1 Start watching this issue


              • Created: