I would like to serialize an object to an XML of this form with XStream.
text
The value of the node
This is much easier in JAXB
@XmlRootElement public class Node { @XmlAttribute String att; @XmlValue String value; }