[SWS-309] Add namespaceMappings property to CastorMarshaller Created: 11/Mar/08  Updated: 05/May/08  Resolved: 02/May/08

Status: Closed
Project: Spring Web Services
Component/s: OXM
Affects Version/s: None
Fix Version/s: 1.5.1

Type: Improvement Priority: Minor
Reporter: Erik-Berndt Scheper Assignee: Arjen Poutsma
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
depends on SWS-287 Spring Web Services does not seem to ... Closed


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.

Comment by Arjen Poutsma [ 05/May/08 ]

Closing issues for 1.5.1

Generated at Wed Nov 14 00:21:37 UTC 2018 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.