xsd.exe/XMLSerializer equivialent for Java?-Collection of common programming errors

What you’re after a data binding framework for XML. The popular ones are JAXB, JiBX and XmlBeans. They all allow you to take an XML schema and generate a bunch of java classes, and also have a runtime component which serializes/deserializes to and from XML and objects.

No one of them is the clear winner, they each have their strengths. JAXB is now included as part of Java 6, so that’d be my default choice.