Hi!

I would like to build an XML-tree as the union of two or more other trees. I want this to be done in a overlay fasion, ie the tree last added should replace old elements if it has the same name.

Is this possible in an easy way with dom4j?

Example.

1:st three
<parent>
        <node name="1">hi</node>
        <node name="2">there</node>
</parent>

2:nd three
<parent>
        <node name="2">dude</node>
        <node name="3">bonus</node>
</parent>

result after applieng the 2:nd to the 1:st

<parent>
        <node name="1">hi</node>
        <node name="2">dude</node>
        <node name="3">bonus</node>
</parent>



--
Andreas Andersson
IT Dept.
Travelstart Nordic
[EMAIL PROTECTED]
http://www.travelstart.se


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to