[英]JAXB Unmarshalling with outer and inner tags having same name and different attributes
<xyz>
<a attributeA, AttributeB>
<b> </b>
<c>
<a attribute1,attribute2,attribute3/>
</c>
</a>
</xyz>
can anyone suggest me how to deal with 'a' innertag. 谁能建议我如何处理“ a”内标。
I find JAXB annotations easier. 我发现JAXB批注更容易。
@XMLElement
xyz.A a;
Probably in another bean class: 可能在另一个bean类中:
@XMLElement(name = "a")
xyz.c.A suba;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.