<productInfo>
<product>
<productPrice>
<price></price>
</productPrice>
</product>
<productInfo>
To create an XML like the above I am creating classes for productInfo
, product
, productPrice
and then I am "unmarshalling" using JAXB annotations.
Is there any way to unmarshall without creating product
class?