I have some domain objects which I want to marshal into xml documents using JAXB. In order to do this I have to first generate an ObjectFactory using xjb, right? Or is there (with JAXB) a way to marshal a Java object into xml without using an ObjectFactory?