All you need to do is create/generate the Note.java class according to the XML structure you have and JAXB will marshal/unmarshal it.
Note note = JAXB.unmarshal(new File("D:\\note.xml"), Note.class);
919977 wrote:seriously, did you do any research? i'm sure even a basic jaxb tutorial would mention how to use xjc to generate java classes from XML Schema. (I understand that the subjects you mentioned are all potentially very large, but doing some intro reading on each one of them would have answered your questions far faster than posting to a forum and waiting for all the answers to come back to you).
Looks daunting. But if there's a tool for this, I'd love to hear about it.