Da so etwas wie:Parsing gewickelt Attribute mit jaxb
<root>
<wrapper>
<wrapped id="..."/>
<wrapped id="..."/>
</wrapper>
</root>
wie kann ich es auf diese POJO Karte:
public class Root {
public Set<UUID> myIds = new LinkedHashSet();
}
frage ich mich seit @XmlElement(name = "wrapped") @XmlElementWrapper(name = "wrapper")
Werke etwas ähnlich zu dem, was ich will, ist es etwas um das Attribut zu bekommen?
hinweis: ich benutze nicht moxy so weit ich weiß, kann ich nicht xpaths verwenden. Ich versuche, die @XmlJavaTypeAdapter
Route zu vermeiden.
Mögliche Duplikat https://stackoverflow.com/questions/5514752/xml-element-with-attribute-und-content-using-jaxb? rq = 1 –
Das ist ein anderes Schema. – Aarjav