Hi,
A question on creating java class for following XML node which contains a error code and description on the same element. My question is about how could I map the error message details in the java class so XStream works for deserializing.
XML:
Java:
@XStreamAlias("response")
public class ErrorResponse {
@XStreamAlias("code")
@XStreamAsAttribute
private String code;
....
....
}
Thanks.