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

Michael Molloy mmolloy at RESORTQUEST.com
Fri Feb 2 09:18:27 PST 2001


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



More information about the jdom-interest mailing list