This is a real-world example where I have an xml document where there is an element <XML_ELEMENT> that I wish I could ignore and just go straight to <PEOPLE> and <PERSON>. Most examples I see don't have this extra wrapper. I don't know if there is a way in my Persons class through annotations to target <PERSONS> without being blocked by <XML_ELEMENT> below. This has me so frustrated because I know there is probably an easy way to do this but I don't know what to search for.... please help.
posted 4 years ago
Oh my goodness I found it....@XmlElementWrapper is what I needed. I knew it was an annotation that I needed.