Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add namespaceMappings property to CastorMarshaller [SWS-309] #465

gregturn opened this issue Mar 11, 2008 · 1 comment

Add namespaceMappings property to CastorMarshaller [SWS-309] #465

gregturn opened this issue Mar 11, 2008 · 1 comment


Copy link

@gregturn gregturn commented Mar 11, 2008

Erik-Berndt Scheper opened SWS-309 and commented

See the Castor 1.2 API for the Marshaller class (

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:

  • #444 Spring Web Services does not seem to work with Castor 1.2
    ("depends on")

Referenced from: commits fa36d6e

1 votes, 1 watchers

Copy link
Member Author

@gregturn gregturn commented May 5, 2008

Arjen Poutsma commented

Closing issues for 1.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.