[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
depends on SWS-287 Spring Web Services does not seem to ... Closed

 Description   

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.



 Comments   
Comment by Arjen Poutsma [ 05/May/08 ]

Closing issues for 1.5.1

Generated at Mon Dec 11 23:06:25 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.