link rel - deserialization,java wrapper

时间:2016-07-25 09:34:29

标签: java xml deserialization

如何反序列化此xml:

<player>
<name>John</name>
<link rel="self" href="/state/XYZ2" type="application/xml"/>

到这个java包装器:

public class Player implements Serializable { 

private String name;
// How to deserialize href to string ?

}

0 个答案:

没有答案