Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes XML and Related Technologies and the fly likes If conditions using JAXB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "If conditions using JAXB" Watch "If conditions using JAXB" New topic
Author

If conditions using JAXB

pramod talekar
Ranch Hand

Joined: Apr 26, 2010
Posts: 323

Hi,

I need to write an if condition where in if my xml file contains a specific tag then JAXB should unmarshal it into classA and if not, then into classB.

please advise.


Thanks,
Pramod
 
 
subject: If conditions using JAXB