XML to Java Classes
Generate Java classes with JAXB annotations from XML structure for XML binding.
About XML to Java with JAXB
JAXB (Java Architecture for XML Binding) is the standard Java technology for converting between XML and Java objects. The @XmlRootElement annotation marks the root class, @XmlElement maps XML elements to fields, and @XmlAttribute maps XML attributes to fields. This generator creates skeleton JAXB-annotated classes from an XML sample that can be used with JAXBContext for marshalling/unmarshalling.
FAQ
Is JAXB still used in modern Java?
JAXB is still used in enterprise Java (Jakarta EE) for SOAP web services, legacy system integration, and XML configuration. It was removed from the JDK standard library in Java 11 (moved to jakarta.xml.bind). For new REST/JSON APIs, Jackson is preferred. For complex XML processing, consider Jackson XML or XStream. JAXB remains the standard for SOAP/WS-* web services.