• Post Reply Bookmark Topic Watch Topic
  • New Topic

Annotation Type XmlAccessorType

 
Joseph Sweet
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi to all,

I have a question regarding JAXB. Would appreciate your help.

Citing from:

Annotation Type XmlAccessorType

Controls whether fields or Javabean properties are serialized by default.


Why should the fields be serialized? I am not sure I got it right, but I thought that the content tree classes are used to create XML files. Why should their fields be serialized?

Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!