Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

If conditions using JAXB

 
pramod talekar
Ranch Hand
Posts: 328
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic