471,078 Members | 843 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,078 software developers and data experts.

Comparing two XML files in C#

Hallo everybody,

I have the following problem. There are two XML files: first one
(FIRST.xml) includes all products definition, the second one
(SECOND.xml) is a product instance. What do I need is to compare these
two files.

Let's see an example:

<Product ID="">
<Element ID=""/>
<Element ID=""/>
<Element ID=""/>

<Product ID="">
<Module Name=""/>
<Module Name=""/>
<Module Name=""/>
<Product ID=""/>
<Module Name="">
<Element ID=""/>
<Element ID=""/>
<Element ID=""/>
<Module Name=""/>

What do I need to do is find appropriate Product from SECOND.xml. If I
have it then there is a need to find all Modules content (all ELements)
of this Product and finally to compare FIRST.xml with the processed
information. Could you provide some C# source code to solve it ?

It is the first step of little bit more complicated problem.

Thanks in advance for the help

Oct 11 '06 #1
0 3960

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Dan Stromberg | last post: by
5 posts views Thread by Peteroid | last post: by
3 posts views Thread by s99999999s2003 | last post: by
3 posts views Thread by system55 | last post: by
reply views Thread by Gabriel Genellina | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.