Given an object as such :
@XmlRootElement(name = "node")
public class Node {
@XmlElement(name = "data")
private String data;
}
I want to get it serialized this way :
<node><data [string]/></node>
How can I do this ?
My string contains multiple attributes like x='1' y='2'
.