java jackson XML - how to ignore outer wrappers when parsing?
问题 The XML response from the API , I want to parse is something like this: <Envelope> <Body> <RESULT> <SUCCESS>TRUE</SUCCESS> <EMAIL>somebody@domain.com</EMAIL> ... more stuff... </RESULT> </Body> </Envelope> I want to get the fields of RESULT into an object. I could create 3 classes, once for the envelope with the body in it, one for the body with the result in it, and one for the result. But, is there a shortcut? E.g. just create an object for the result data like this: @JacksonXmlRootElement