Questions tagged [jaxb2]

For issues relating to the JAXB XML binding architecture, version 2.

Java Architecture for XML Binding (JAXB) is the Java standard (JSR-222) for working with XML as domain objects. It provides an easy to use mechanism for mapping Java classes to XML representations. An implementation is included as part of the Java SE 6 API. There are several implementations available including Metro JAXB (the reference implementation), EclipseLink MOXy, and JaxMe.

741 questions
0
votes
1 answer

request body for static inner class of xml root element

I'm trying to get an object parsed from XML (request body). My controller method's header is public ModelAndView differentTypeOfIds(@RequestBody DiffIdsRequest.DescBatch body){ where DescBatch is static inner…
pawb4r
  • 160
  • 1
  • 11
-1
votes
1 answer

Adding jaxb2-basics-annotate plugin causes builder functions no longer being generated

I am using maven-jaxb2-plugin to generate java classes from a service wsdl I imported into the project. org.jvnet.jaxb2.maven2 maven-jaxb2-plugin
I.Brok
  • 319
  • 1
  • 2
  • 16
-1
votes
1 answer

JAXB unmarshalling same XML element but different childs

I have the following XML that need to unmarshal: Color Red Green Size
iseif
  • 297
  • 2
  • 14
-1
votes
1 answer

Need help on JAXB

I have an XML which looks like below Book1 20$ I have used a Bean Class with properties name, cost and successfully unmarshaled the xml file contents to Book bean object. Now I want to have multiple…
-1
votes
1 answer

How to convert JAXB annotated class to Schema instance at runtime?

I know about creating schemas at compile time (JAXB ) but how can i get this information at runtime . Model class: package pl.kkrzeminski; import javax.xml.bind.annotation.XmlElement; import…
kriz
  • 1
  • 2
-2
votes
1 answer

JAXB generated class

I am trying to using exchange webservices to get a mail item. I need to set the item id and change key in this object, Could you please let me know how to create instance of below class? // // This file was generated by the JavaTM Architecture for…
Adam
  • 727
  • 4
  • 11
  • 21
1 2 3
49
50