Closed GithubUser8080 closed 8 months ago
Namespace information is currently not really used or retained on deserialization at all: it is produced on serialization for compatibility purposes.
So there is no way to map by namespace URI at this point, nor immediate plans to support it. Similarly whether something comes as an Attribute or Element is not retained either.
Ok, so just to be clear, there is nothing equivalent in jackson to JAXB @XMLAnyElement where i can map unknown child elements to an Element object list and then get the namespace instead of just strings with their name?
@GithubUser8080 correct.
Got it, thank you. I will close the issue.
When using
On a POJO, with the intent to have a schema where can contain any amount of unknown child elements
Deserializing XML such as
Results in the map containing only 1 object named "child". As per XML these are two different elements, so how would it be possible to map according to both namespace and attribute name?