[Simple-support] how to process an xml without element or attributes
Brought to you by:
niallg
|
From: gato c. <da...@gm...> - 2011-03-02 21:36:29
|
for example:
<node>321</node>
where 321 is the id of the node. node tag does not have attributes or
elements. it just has the 'id' value inside.
I tried with :
@Root
public class Node{
//don't know how to annotate the id.
private int id;
public To(int id){
this.id=id;
}
}
thanks for the help.
|