Top "Jaxb" questions

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

How to unmarshall SOAP response using JAXB if namespace declaration is on SOAP envelope?

JAXB can only unmarshall an XML if the soap envelope has already been removed. However, the SOAP response I'm trying …

java xml soap jaxb unmarshalling
Why does JAXB need a no arg constructor for marshalling?

If you try to marshal a class which references a complex type that does not have a no-arg constructor, such …

java xml jaxb marshalling
@XMLRootElement versus @XmlType

What's the difference between annotating a class with @XMLRootElement and @XMLType. I've been annotating classes with @XMLType when the structure …

xml jaxb jax-ws
Java cannot access class, class file not found

When I try to make a project in IntelliJ I receive the following error on this line: Sentence sent = new …

java intellij-idea interface jaxb
JAXB unmarshalling multiple XML elements into single class

I have the following XML structure, which is modelling a single concept across multiple XML elements. This format is not …

java xml jaxb eclipselink moxy
JAXB creating context and marshallers cost

The question is a bit theoretical, what is the cost of creating JAXB context, marshaller and unmarshaller? I've found that …

java jaxb marshalling
Converting Java Object to Json using Marshaller

Its quite easy to convert a java object to XML by using Marshaller. But I need to convert a java …

java json jakarta-ee jaxb marshalling
JAXB Unmarshalling not working. Expected elements are (none)

I am trying to unmarshal an XML. This is what my XML looks like <DeviceInventory2Response xmlns="http://tempuri.…

java jaxb unmarshalling
How to annotate a list using @XmlElement?

I have the following annotation using javax.xml.bind.annotation.XmlElement: @XmlElement public List<String> getKeywords() { return keywords; } …

java xml jaxb annotations
How to check if a java class has a particular method in it?

I have an xml schema (generated automatically using trang) which keeps changing. These changes are not very elaborate. Only some …

java jaxb xsd