quote:
Originally posted by giken
Is there a way to merge two messenger xml chat logs?
I use WLM at home and at work so I have two different chat archives with two xml files for every contact I used to talk to.
I'd like to merge them to get one big chat archive only.
How can I do that?
Open up the XML log and study its format...
The structure of XML logs (from both Messenger 7.5 and lower, and WLM 8.0) is something like this:
code:
<?xml version="1.0"?>
<?xml-stylesheet type='text/xsl' href='MessageLog.xsl'?>
<Log LogonName="bebop_007@hotmail.com" FirstSessionID="1" LastSessionID="123">
<Message Date="..." Time="..." DateTime="..." SessionID="1">
<From><User LogonName="me@mail.com" FriendlyName="my name"/></From>
<To><User LogonName="he@mail.com" FriendlyName="his name"/></To>
<Text Style="...">chat blah blah</Text>
</Message>
<Message Date="..." Time="..." DateTime="..." SessionID="2">
<From><User LogonName="me@mail.com" FriendlyName="my name"/></From>
<To><User LogonName="he@mail.com" FriendlyName="his name"/></To>
<Text Style="...">chat blah blah</Text>
</Message>
<Message Date="..." Time="..." DateTime="..." SessionID="3">
<From><User LogonName="me@mail.com" FriendlyName="my name"/></From>
<To><User LogonName="he@mail.com" FriendlyName="his name"/></To>
<Text Style="...">chat blah blah</Text>
</Message>
...
<Message Date="..." Time="..." DateTime="..." SessionID="123">
<From><User LogonName="me@mail.com" FriendlyName="my name"/></From>
<To><User LogonName="he@mail.com" FriendlyName="his name"/></To>
<Text Style="...">merged chat line from other file blah blah</Text>
</Message>
</Log>
To merge two XML files all you need to do is copy the contents from one file to the other.
But only copy the contents between the <log></log> tags, as there can only be 1 of such tag (eg: the chat line with SessionID 123 was copied from another log).
You'll also notice the elements
FirstSessionID and
LastSessionID in the <log/> tag. If possible, change these accordingly (eg: by means of a specific (non yet existing) merging tool. But it also means that you need to change/update all the
SessionID elements in the
<Message/> tags. The
SessionID,
FirstSessionID and
LastSessionID elements aren't used (yet) though, so you may also leave them as they are for now. Simply copying everything between the
<log></log> tags is sufficient to merge them.
PS: be carefull what to copy from logs of a multi-conversations though.
quote:
Originally posted by Funness
You may just beable to append one logs to the other. Although this would throw out the time stamps.
Unfortunatly not, there can only be 1 tag at the highest level in an XML file*.
Nothing will be thrown out either. Also, timestamps wouldn't be a problem if he never chatted (or logs were saved from contacts contacting him) with both computers at the same time. But he indeed must be "carefull" in his copying so that he respects the order of the timestamps (otherwise the viewed log would jump from one time to the other and back, but nothing will be broken though, it would just be a bit dodgy to read again)...
* and because of that, merging must either be done manually by copy/pasting, or someone must write a program which does this for him. Simply copy-merging whole files together won't work.
quote:
Originally posted by GHOST OF DA AGES
An official tester could help as others dont know about Msg+ live! And u too r an official tester.*GHOST wonders how did he/she become an official tester?
He's not talking about Messenger Plus! in any way.