Solved

programmatically join/merge two XML files

Posted on 2002-03-12
1
397 Views
Last Modified: 2013-12-03
How do I programmatically join/merge two XML files (or larded as dataset) in the way that no repetitions of elements/nodes
will occur, just like what SQL statements can do to datasets?
The XML files are having similar structure and elements are separated by id attributes.

Thanks,
Neural
0
Comment
Question by:neural
1 Comment
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
ID: 6862448
There's no built-in way of doing that. You will have to write code to do that yourself. You will need to load the XML documents and traverse them with DOM. With DOM, you will be able to enumerate through the nodes from one document and search for it in the other document. If the search failed, then add it to the resulting DOM. Finally, save this DOM to disk.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now