users@jaxb.java.net

Re: Marshalling an element only marshalls its contents.

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Thu, 11 Dec 2003 08:48:36 -0800

One way to address the problems is to use the type substitution support
in 1.0.2. Then you can say:

    BillTo element = new ObjectFactory().createBillTo();
    element.setValueObject(po.getBillTo());
    m.marshal( element, System.out );

See the vendor customization list in the release notes of JWSDP 1.3.

Or alternatively you can also use so-called "element wrapper" technique.
Search the archive for the keywords like "element" and/or "wrapper" and
you should be able to find a source code snippet.


regards,
--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net