How do I repair a corrupt MSN Message History XML file

The XML Message History file for one of my work contacts is suddenly saying it is corrupt. I really need this file as I use it for reference to past conversations.

When I try to view it I see the following error in the error report


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Creative AutoUpdate v1.40.01)
Timestamp: Thu, 16 Sep 2010 18:55:30 UTC

Message: Invalid at the top level of the document.

Line: 169
Char: 1330
Code: 0
URI: file:///F:/Kirk MSN/lsmri1851996486.xml


I am hoping I can open the file and remove the error?

Who is Participating?
electricinkConnect With a Mentor Author Commented:
Thanks for the suggestion... I tried what you suggested but I couldnt find the line number in question to find the problem.

I actually found a free piece of software called Notepad++ that i was able to turn on line numbers and word wrap and I found the problem.

I first made a backup of my original .XML file.

I loaded the file in Notpad++ and saw there extra tag in line 169 "</tag>" and then a big chunk of Null data.

Once I deleted the extra </log> and the null data, the file loads perfectly!

compare its stracture to a different functioning file using notepad/wordpad.
alternatively rename the file so you have a reference while can have a record of new exchanges.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.