Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXB error

 
Vivek Hingorani
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I created a countryIndia object and was trying this piece of code and was unable to execute last line as it was not allowing me to directly create the XML file from the Object.
whereas if i tried
it would write on the console in correct xml format.
I want to create the countryrecord.xml directly rather copying from console and pasting it to the XML
 
g tsuji
Ranch Hand
Posts: 667
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a countryIndia object and was trying this piece of code and was unable to execute last line as it was not allowing me to directly create the XML file from the Object.

So you were not allowed. But what is the error?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic