Hi,
What would be the best approach to merging several XML files?
The files are big, so I can't keep them in memory.
Example:
xml document 1:
<rootelement>
<product>
<data>somedata</data>
</product>
</rootelement>
xml document 2:
<rootelement>
<product>
<data>someotherdata</data>
</product>
</rootelement>
result.xml:
<rootelement>
<product>
<data>somedata</data>
</product>
<product>
<data>someotherdata</data>
</product>
</rootelement>
That is, I just want to append all elements below the root
element from file2, 3 etc. into file1 (just before the
</rootelement> tag).
When all data from file2,3 etc.is appended I would append the
</rootelement> tag.
/Best regards, Håkan Jacobsson - System developer in Sweden
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
dom4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-user