Parsing complex xml to java using jaxb
===

Can anyone suggest a piece of code, for converting xml to java using jaxb.
My xml file look like 

         <Customer>
        <Operation>Sample</Operation>
        <head>
            <sub>
                <value>
                    <att>
                        <req>
                            <name>sample</name>
                            <value>
                                <string> sample values </string>
                            </value>
                        </req>
                    </att>
                </value>
            </sub>
            <sub>
                <value>
                    <att>
                        <req>
                            <name>var</name>
                            <value>
                                <string>var value</string>
                            </value>
                        </req>
                    </att>
                </value>
            </sub>
        </head>
    </Customer>


I used the following piece of code, but i am getting null values

    File file = new File("C:\\xml.xml");
    JAXBContext jaxbContext = JAXBContext.newInstance(Customer.class);
    Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
    Customer customer = (Customer) jaxbUnmarshaller.unmarshal(file);
    System.out.println(customer.name);
    System.out.println(customer.string);

