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

Please help with xsi:nil #352

Closed
itgeo123 opened this issue Jul 29, 2019 · 2 comments
Closed

Please help with xsi:nil #352

itgeo123 opened this issue Jul 29, 2019 · 2 comments

Comments

@itgeo123
Copy link

Hello

I am trying to deserialize an XML using JAckson. All is fine, except when xml element has attribute xsi:nil=true. Then XmlMapper reports errors on irrelevant xml nodes.

How to make Jackson to ignore xsi:nil?
<Location xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance\" xsi:nil="true" />\

Thank you!

@cowtowncoder
Copy link
Member

In future, please use mailing list for usage questions: issue tracker is for reporting bugs and requesting new features (supporting handling of xsi:nil seems like a valid feature request).

But as to ignoral, try using @JsonIgnore({ "nil" })?

@cowtowncoder
Copy link
Member

Created #354 which covers this problem as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants