Consider this C# code:
[XmlRoot("RootElementName")]
public class GetReportStatusResponse
{
....
}
This code allows me to express this class as <RootElementName> rather then <GetReportStatusResponse> when serialized to XML.
Does Java have an equivalent?
Yes, it’s called jaxb: