Top "Jaxb" questions

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

How do I parse this XML in Java with JAXB?

I have the following XML, no XSD or schema with it that I want to parse to java object(s) …

java xml jaxb
How can I add xml attributes to jaxb annotated class XmlElementWrapper?

I have a class with a XmlElementWrapper annotation like: ... @XmlElementWrapper(name="myList") @XmlElements({ @XmlElement(name="myElement") } ) private List<SomeType&…

xml annotations jaxb linked-list
Excluding fields in JAXB

I have 2 classes: @XmlRootElement public class A { private Long id; private B b; // setters and getters } and @XmlRootElement public class …

java xml jaxb java-ee-6
javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:""). Expected elements are

You can find a lot of questions like this in this site but none has solved my issue. This is …

java xml jaxb xjc
Can I force JAXB not to convert " into &quot;, for example, when marshalling to XML?

I have an Object that is being marshalled to XML using JAXB. One element contains a String that includes quotes ("). …

java jaxb xml-serialization marshalling html-entities
Remove ns2 as default namespace prefix

I have a file that is printed with a default namespace. The elements are printed with a prefix of ns2, …

java xml jaxb
How to generate @XmlRootElement Classes for Base Types in XSD?

I am having some issues with generating Java Classes with appropriate JAXB annotations from an XSD using XJC. I have …

java xsd jaxb xjc
JAXB element of type enum

So I know how to create an enum type but when I set an element type to it the element …

enums types schema jaxb element
JAXB Marshalling with null fields

This is a pretty simple request, but I just didn't find a way to do it. I'm basically trying to …

java jaxb marshalling
IllegalAnnotationException: Two classes have the same XML type name

I am developing web service under JBoss 5 and Java 1.6. What could possibly cause this exception? Below is my simplified web …

java jboss jaxb jbossws