File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes jaxb marshall and unmarshall Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "jaxb marshall and unmarshall" Watch "jaxb marshall and unmarshall" New topic

jaxb marshall and unmarshall

geeta lalchandani
Ranch Hand

Joined: Jun 07, 2005
Posts: 118
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

Joined: Feb 27, 2002
Posts: 8927

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

Joined: Jun 07, 2005
Posts: 118
i tried partial unmarshalling...
but it gives an exception in SaxUnmarshallerImpl, which is internally used by jaxb.

Any hints to make it work.
I agree. Here's the link:
subject: jaxb marshall and unmarshall
It's not a secret anymore!