I am trying to get an XML output from a restEasy service. And its working fine. The problem is i am not able to see elements which dont have any values. I used @xmlElement in domain class wherever necessary. In Json response, i can see elements with null values.This is not working with XML. For Example:
JSON Response: "chemStructure": { "inchi": null, "inchiKey": null, "smiles": null, "iupac": null, "imageUri": null, "notation": null }
XML Response:
I want to see atleast the elemenst with empty tags