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

jaxb marshall and unmarshall

 
geeta lalchandani
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know if partial marshalling and unmarshalling is possible using JAXB.

i just want to marshal and un-marshal particular node in the xml.Is that possible..
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it is possible. You should try it out.
Different JAXB Providers will support marshalling invalid Java content trees at varying levels, however all JAXB Providers must be able to marshal a valid content tree back to XML data
 
geeta lalchandani
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i tried partial unmarshalling...
but it gives an exception in SaxUnmarshallerImpl, which is internally used by jaxb.

Any hints to make it work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic