This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
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

extending or instantiating JAXB factory?

 
Robin John
Ranch Hand
Posts: 281
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am using JaxB to create an XML, I wanted to confirm, which of the below should I follow?

OPTION A

OPTION B


thanks in advance, please advice.

Regards.
 
Bhagat Singh Rawat
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Robin John wrote:
OPTION A

OPTION B



Option B is right approach. Please go through Generating an XML Document with JAXB
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic