At the time of marshalling of JAXB object I want to set some defult value to the resulting XML.
I do not want to use nillable=true
as it generates empty tag with unnecessary xsi:nil="true"
, and this is not for setting default value. Instead I want to generate the XML with some placeholder characters such as '?'.
Use case : I am going to build a tool for WebService testing. There I need to present the entire request xml to the user (Like SOAPUI).