0
我如何添加事件標記中的通道屬性(對於每個孩子的標籤,我寫了單獨的類)?我如何添加一個屬性到父元素的XML元素使用JAXB註釋
這裏是樣本格式:
<TestRequest>
<Constraints>
<Currency>USD</Currency>
<ServiceFlags>
<ServiceFlag code = "" />
</ServiceFlags>
</Constraints>
<Events>
<Event type="Pickup">
<Location>
<Zip></Zip>
<Country></Country>
</Location>
</Event>
<Event type="Drop">
<Location>
<Zip></Zip>
<Country></Country>
</Location>
</Event>
</Events>
</TestRequest>
嗨,crevier可以請你解釋一個例子,以便它對我有幫助。 – balu