PC Review


Reply
Thread Tools Rate Thread

Comparing XML Files

 
 
Mark Jerde
Guest
Posts: n/a
 
      9th Mar 2005
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


 
Reply With Quote
 
 
 
 
John Sun
Guest
Posts: n/a
 
      9th Mar 2005
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
 
Reply With Quote
 
Matt
Guest
Posts: n/a
 
      10th Mar 2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing 2 MSG files . =?Utf-8?B?cGVrZXRp?= Microsoft Outlook VBA Programming 7 17th Feb 2006 05:51 AM
Comparing Files in W2K ? Magnusfarce Microsoft Windows 2000 3 29th Jul 2005 04:53 PM
comparing two files Leo Kerner Windows XP General 3 11th Mar 2005 06:34 AM
Comparing Files Irnst Microsoft Access 1 29th Apr 2004 06:35 PM
Comparing Files KNorman Microsoft Dot NET 1 6th Aug 2003 08:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:17 AM.