?
Solved

programmatically join/merge two XML files

Posted on 2002-03-12
1
Medium Priority
?
404 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 800 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

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

777 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