-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
Namespace repairing generates xmlns definitions for xml: prefix (which is implicit) #395
Comments
Workaround is to disable namespace repairing and explicitly set xml prefix. Sample code:
|
If this is for actual Woodstox bug, test should only use Woodstox API, and not rely on Jackson XML format module. Alternatively I can transfer this to |
Interesting. I can reproduce this -- I am surprised Woodstox does try to output this as it shouldn't (as per XML specification). Will need to see what gives. |
Fix will be included in 2.10.5 (which will take a while to release) and 2.11.1 (probably released earlier, in 1-2 months) |
Saving this class:
will produce the following XML when namespace repairing is true:
However, the xml: prefix and the
http://www.w3.org/XML/1998/namespace
namespace is implicitly defined on all XMLs and there is no need to generate xmlns for that.The text was updated successfully, but these errors were encountered: