Top "Jaxb" questions

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

How do i instantiate a JAXBElement<String> object?

I need to create one of these as the interface requires it...can someone please let me know how to …

java jaxb
How can I tell jaxb / Maven to generate multiple schema packages?

Example: </plugin> <plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>…

maven-2 jaxb schema xsd java
Remove 'standalone="yes"' from generated XML

Do you know of a JAXB setting to prevent standalone="yes" from being generated in the resulting XML? <?xml …

xml xsd jaxb xml-binding
JAXB Exception: Class not known to this context

When I call a particular restful service method, which is built using CXF, I get the following error, anyone know …

java web-services jaxb cxf
javax.xml.bind.UnmarshalException: unexpected element. Expected elements are (none)

I am getting this error, while unmarshalling a string. I have created Java files using JAXB. JAXBContext jaxbContext = JAXBContext.newInstance(…

java jaxb unmarshalling
How to validate against schema in JAXB 2.0 without marshalling?

I need to validate my JAXB objects before marshalling to an XML file. Prior to JAXB 2.0, one could use a …

java jaxb
How can I get the "Eclipse >Generate>Jaxb classes" option back?

I recently had to migrate to a new machine and re-installed Eclipse. At the moment, I need to generate JAXB …

java eclipse jaxb xsd
Generate classes with jaxb2-maven-plugin from WSDL

I am having trouble configuring the jaxb2-maven-plugin to generate Java classes from a WSDL and multiple XSD files that …

java maven jaxb jaxb2-maven-plugin
How do you specify the date format used when JAXB marshals xsd:dateTime?

When JAXB marshals a date object (XMLGregorianCalendar) into an xsd:dateTime element. How can you specify the format of the …

datetime jaxb format marshalling milliseconds
JAXB: How to marshal objects in lists?

Perhaps a stupid question: I have a List of type <Data> which I want to marshal into a …

xml jaxb arraylist unmarshalling