I figured this out. I was using the "...Type" object instead of the
"..." object. Once I switched, it wrote out the root element.
> -----Original Message-----
> From: Karr, David
> Sent: Tuesday, November 09, 2004 3:58 PM
> To: users_at_jaxb.dev.java.net
> Subject: Marshalling unmarshalled XML leaves out root element
>
>
> I must be missing something simple, but I tried taking an XML
> file that we already have JAXB unmarshalling code for, and
> then taking the unmarshalled object and then passing it
> through the marshaller, and the resulting XML is very similar
> to the original XML, but it's missing the root element. The
> resulting XML only has the children of the root element.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net