
I need to retrieve a few records from the file at a time to generate xml.But each time while retrieving the records from the file, I dont want the XML header to appear again..How do I achieve this?What changes do I need to make in JAXBController?Explain me with examples..

hi friend,
You can set the property of Marshaller using its method setProperty() to Marshaller.JAXB_FRAGMENT, Boolean.TRUE) as
JAXBContext jaxbContext = JAXBContext.newInstance(ABC.class);
Marshaller marshaller = jaxbContext.createMarshaller();
marshaller.setProperty("Marshaller.JAXB_FRAGMENT, Boolean.TRUE);
marshaller.marshal(abc, System.out);
Thanks.