users@jaxb.java.net

Re: How to marshal two or more content trees into a single XML document

From: Kohsuke Kawaguchi <kohsuke.kawaguchi_at_sun.com>
Date: Fri, 14 Oct 2005 15:20:10 -0700

Johnny Tolliver wrote:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <SomeTag>
> <SomeReply id="xxx">
> more stuff about xxx query
> </SomeReply>
> <SomeReply id="yyy">
> more stuff about yyy query
> </SomeReply>
> </SomeTag>
>
> The structure of the code makes it not so easy to build a single content tree
> that looks like the latter, desired reply. Is there any way to marshal the two
> replies into a single reply as shown? Is this what is known as partial
> marshalling or fragment marshalling?

Exactly. See
http://weblogs.java.net/blog/kohsuke/archive/2005/10/101_ways_to_mar.html

Hopefully it answers your question.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com