Reinier Olislagers schrieb:
On 15-8-2012 23:48, Hans-Peter Diettrich wrote:
Reinier Olislagers schrieb:

2. aren't there any tools that already provide such a "merge XML"
functionality?
An XML document parses into an tree. This tree can be used as the start
for parsing the next XML document, merging or overriding the old and new
tree nodes.
So what tools do you know that do that? Otherwise I don't really
understand why you wrote this comment...

Searching for a tool may not be the way to go. How should a tool know how to deal with duplicate entries?

I'd suggest to look into the XML classes, provided by Lazarus, in detail the laz2_XMLRead/Write units. They provide procedures to read entire XML files and to insert XML text into that document. If these procedures fit your needs, the merged document can be saved using WriteXMLFile.

DoDi


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to