Top "Jaxb" questions

Java Architecture for XML Binding is the Java standard for working with XML as domain objects.

Difference of Maven JAXB plugins

I have determined that two JAXB plugins for Maven 2 exist, with some different configurations. The one is from Sun: http://…

java maven-2 jaxb maven maven-plugin
JaxbRepresentation gives error "doesnt contain ObjectFactory.class or jaxb.index"

I am trying to create a sample test application which converts an object to JaxbRepresentation. But when I try to …

java rest jakarta-ee jaxb restlet-2.0
Class Cast Exception when trying to unmarshall xml?

Trying to get past a class cast exception here: FooClass fooClass = (FooClass ) unmarshaller.unmarshal(inputStream); throws this exception: java.lang.…

java jaxb jaxb2
What is JAXB and why would I use it?

There is guy here swearing that JAXB is the greatest thing since sliced bread. I am curious to see what …

java jaxb
unable to marshal type as an element because it is missing an @XmlRootElement annotation for auto generated classes

I need to validate Class object against my schema in which I have provided regular expression to validate fields for …

java jakarta-ee jaxb schema
JAXB and property ordering

I want the serialized XML output from my Java class to honor the ordering of the properties in the Java …

java jaxb xml-binding
How to generate JAXB classes from just XML

I need to generate classes from xml that doesn't provide a schema. I understand this is near useless, but the …

java xml jaxb
How to use spring to marshal and unmarshal xml?

I have a spring boot project. I have a few xsds in my project. I have generated the classes using …

spring spring-boot jaxb spring-oxm
Getting Marshall result into String

JAXBContext context = JAXBContext .newInstance(CreateExemptionCertificate.class); Marshaller m = context.createMarshaller(); m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE); m.marshal(…

java jaxb
How to generate CDATA block using JAXB?

I am using JAXB to serialize my data to XML. The class code is simple as given below. I want …

java xml jaxb cdata