[jdom-interest] Combining small xml documents into a large xml document

Jason Hunter jhunter at collab.net
Fri Feb 2 18:03:59 PST 2001


Michael Molloy wrote:
> 
> I need a way to combine small xml documents into one large xml document. For
> example,
> 
> <company>
>     <propertygroup1>
>         <unit>1</unit>
>     </propertygroup1>
> </company>
> .....
> Can I do this with jdom? If so, is jdom the best way to go, or is there
> another, easier way?

It's trivial to do in JDOM.  Just remove an element from its parent and
append it to its new location.  XSLT is another option, depending on
your desire to learn XSLT.

-jh-



More information about the jdom-interest mailing list