GeeCON Prague 2014*
The moose likes XML and Related Technologies and the fly likes How to create an instance of javax.xml.bind.JAXBElement<T> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to create an instance of javax.xml.bind.JAXBElement<T>" Watch "How to create an instance of javax.xml.bind.JAXBElement<T>" New topic
Author

How to create an instance of javax.xml.bind.JAXBElement<T>

Sayantan Auddy
Ranch Hand

Joined: Dec 18, 2008
Posts: 35
Can somebody please tell me the use of JAXBElement<T> and how to create an instance of it?


Sayantan Auddy,SCJP 5.0
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Using one of the two public constructors seems like the most obvious way to do it. Did you have a problem with doing that or did you just not know of their existence?
 
GeeCON Prague 2014
 
subject: How to create an instance of javax.xml.bind.JAXBElement<T>