Specifying root and child nodes with JAXB
Staying within JAXB how would I refactor MyNote so that it conforms to: <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> Which is well formed but not valid, to my understanding. Current output: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <MyNotes> <Note> <note>XY3Z1RGEO9W79LALCS</note> <to>LJAY9RNMUGGENGNND9</to> <from>GOVSHVZ3GJWC864L7X</from> <heading>EX6LGVE5LGY4A6B9SK</heading> <body>L95WYQNMEU1MFDRBG4</body> </Note> </MyNotes> which is too flat, rather than nested as the example . I believe this makes note