jaxb: Append a value as a child node



I want to append a string value as an inner node instead as a simple string value.


So instead of having



<Node>Value</Node>


I need to get somethind like this:



<Node>
<Value />
</Node>


Now I'm working with this annotations on field:



@XmlElement(name="Node")
private String node;


Is there any way to accomplish this?


No comments:

Post a Comment