Suppose I have a Java class as follows
public class Foo { public ... getKitchen(){} public ... getRoom(){} public ... getInnerPart(){} public ... getUpperPart(){} public ... getBasement(){} ... ... }
and I want the XML output to look like this
<foo> <house> <kitchen>value<kitchen> <basement>value<basement> <room>value<room> <house> <innerPart>value<innerPart> <upperPart>value<upperPart> <foo>
What would be the JAXB annotations in my class? Thanks.
source share