This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "If conditions using JAXB" Watch "If conditions using JAXB" New topic

If conditions using JAXB

pramod talekar
Ranch Hand

Joined: Apr 26, 2010
Posts: 323


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.

I agree. Here's the link:
subject: If conditions using JAXB
It's not a secret anymore!