Wednesday, 20 January 2016

XML : make an XmlElement with an inline value in Jax-Rs

Does anyone know of an annotation to make this:

      <defaultCurrency uri>/catalog/v1/currencies/LVL</defaultCurrency uri>    

into

      <defaultCurrency uri="/catalog/v1/currencies/LVL"/>    

I essentially want to do an XmlAttribute within an XmlElement but am unsure if it's possible.

No comments:

Post a Comment