473,498 Members | 1,809 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Comparing XML Files

I'm asking for ideas how to compare XML files. The files are schema-based
"Test Logs". They will be generated by several different machines, and the
longer files could be 1000 lines.

Some differences are ok:
<computer>SPITFIRE</computer>
vs
<computer>ODIN</computer>
However most differences are NOT ok:
<results>Passed</results>
vs
<results>Failed</results>
Additionally, some children may not always be in the same order, but this is
ok.
I'm wondering if the test logs could be imported into Excel or Access and
(more easily) analyized. I hope is isn't a from-scratch C# or VB .NET
application.

Thoughts?

Thanks.

-- Mark
Nov 16 '05 #1
3 5343
Mark Jerde wrote:
I'm asking for ideas how to compare XML files. The files are schema-based
"Test Logs". They will be generated by several different machines, and the
longer files could be 1000 lines.

Some differences are ok:
<computer>SPITFIRE</computer>
vs
<computer>ODIN</computer>
However most differences are NOT ok:
<results>Passed</results>
vs
<results>Failed</results>
Additionally, some children may not always be in the same order, but this is
ok.
I'm wondering if the test logs could be imported into Excel or Access and
(more easily) analyized. I hope is isn't a from-scratch C# or VB .NET
application.

Thoughts?

Thanks.

-- Mark

Mark,

Sometimes, it's easier to write a little application to do the
comparison. .Net offers a rich library to parse the Xml files. You
surely could import it into Excel or Access , but even in that way, I
would suggest to write some scripts. Imagine if you have to do it a
thousand times, wouldn't it be nicer to write a simple application, and
double click it instead of going to File ->import -> ....

My two cents.

Jianwei
Nov 16 '05 #2
Mark,

Go to gotdotnet.com and look under tools at XML diff. It can easily be used
to get a set of difference information between 2 XML files.

HTH,

Matt
"Mark Jerde" <ma********@verizon.no.spam.net> wrote in message
news:u4**************@TK2MSFTNGP09.phx.gbl...
I'm asking for ideas how to compare XML files. The files are schema-based
"Test Logs". They will be generated by several different machines, and the longer files could be 1000 lines.

Some differences are ok:
<computer>SPITFIRE</computer>
vs
<computer>ODIN</computer>
However most differences are NOT ok:
<results>Passed</results>
vs
<results>Failed</results>
Additionally, some children may not always be in the same order, but this is ok.
I'm wondering if the test logs could be imported into Excel or Access and
(more easily) analyized. I hope is isn't a from-scratch C# or VB .NET
application.

Thoughts?

Thanks.

-- Mark

Nov 16 '05 #3
Thanks for the input, John & Matt.

I just ran the first complete test. The XML file is 4078 lines long. When
more tests are added that should grow to 6000 lines. I need to figure out
automation. ;-)

-- Mark

John Sun wrote:
Mark Jerde wrote:
I'm asking for ideas how to compare XML files. The files are
schema-based "Test Logs". They will be generated by several
different machines, and the longer files could be 1000 lines.

Some differences are ok:
<computer>SPITFIRE</computer>
vs
<computer>ODIN</computer>
However most differences are NOT ok:
<results>Passed</results>
vs
<results>Failed</results>
Additionally, some children may not always be in the same order, but
this is ok.
I'm wondering if the test logs could be imported into Excel or
Access and (more easily) analyized. I hope is isn't a from-scratch
C# or VB .NET application.

Thoughts?

Thanks.

-- Mark

Mark,

Sometimes, it's easier to write a little application to do the
comparison. .Net offers a rich library to parse the Xml files. You
surely could import it into Excel or Access , but even in that way, I
would suggest to write some scripts. Imagine if you have to do it a
thousand times, wouldn't it be nicer to write a simple application,
and double click it instead of going to File ->import -> ....

My two cents.

Jianwei

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
1988
by: Dan Stromberg | last post by:
We will soon have 3 copies, for testing purposes, of what should be about 4.5 terrabytes of data. Rather than cmp'ing twice, to verify data integrity, I was thinking we could speed up the...
8
6704
by: Corno | last post by:
Hi all, Does anybody know a command line tool (linux or windows) that can compare 2 XML files. There's only 1 extra requirement that makes it a bit more complicated: the order of attributes or...
18
2017
by: HerrLucifer | last post by:
I am each day becoming more and more addicted to the new .Net framework because of its cool RAD facilities. However, performance and speed is extremely important for my application development. I...
4
5516
by: ddd | last post by:
I am trying to build a diff tool that allows me to compare two HTML files. I am looking for resources on how to achive this. The main problem is that I do not want to simply highlight the line of...
5
1497
by: Peteroid | last post by:
I realize this might not be the correct newsgroup, but since I have a general question I need answering in the context of doing a managed VC++.NET Managed application, this is as good a place as...
0
2371
by: richardkreidl | last post by:
I have the following hash script that I use to compare two text files. 'Class Public Class FileComparison Public Class FileComparisonException Public Enum ExceptionType U 'Unknown A 'Add...
3
4251
by: s99999999s2003 | last post by:
hi i wrote some code to compare 2 files. One is the base file, the other file i got from somewhere. I need to compare this file against the base, eg base file abc def ghi eg another file
3
3160
by: system55 | last post by:
are there any commands that can compare two files? Comparing in the sense that the two files are alike... Because I wrote a program that makes a backup file of another file... Just want to know if...
0
1077
by: Gabriel Genellina | last post by:
En Thu, 15 May 2008 06:02:29 -0300, Beema shafreen <beema.shafreen@gmail.comescribió: *three* columns? You menction only two of them. Do you have to syncrhonize both listings? That is,...
1
2309
by: Avi1 | last post by:
Hi, I got the code (from the internet)for comparing two files and showing the difference in contents.Now,I tried the same code for two files written in japanese language(kanji).If I save the two...
0
7126
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7005
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7210
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5465
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4916
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4595
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1424
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
293
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.