jaxb: inline elements

Mc131313

New Member
Given:\[code\]@XmlRootElement(name = "foo")class Foo { public Bar getBar() {...}}class Bar { @XmlElement(name = "string") public String getString() {return "hello";}}\[/code\]How do I annotate so the XML will be:\[code\]<foo> <string>hello</string></foo>\[/code\]
 
Back
Top