Pyro
2009-12-25, 10:08 PM
So winter break rolled around, and to keep myself occupied, have to decided to embark on coding project with VB.NET.
There's an IM application Trillian (http://en.wikipedia.org/wiki/Trillian_(software)) which connects to almost every chat network imaginable in one program as well as keeps conversation logs. Essentially, what I'm trying to do is create a program that can view these chat logs.
Trillian stores these logs as "xml files" (as well as in plain text, but those are rubbish), but the problem is that they're poorly formatted and I have no experience with manipulating xml files.
Here's a sample:
<session type="start" time="1232818706" medium="FACEBOOK" to="1191881127" from="FName1%20LName1"/>
<message type="incoming_privateMessage" time="1232818721" medium="FACEBOOK" to="FName1%20LName1" from="1191881127" from_display="FName2%20LName2" text="btw%2C%20the%20rave%20costs%20%245%20to%20get%20in"/>
<message type="outgoing_privateMessage" time="1232818727" medium="FACEBOOK" to="1191881127" from="FName1%20LName1" from_display="FName1%20LName1" text="Hmm%2E%2E%2E"/>
I want to be able to "grab" the information in quotes, but I have no idea where to start. It's possible to do it using indexing and substring methods, but it gets kinda messy, and the xml log files have lots of special character encoding, so I would rather not reinvent the wheel.
There's an IM application Trillian (http://en.wikipedia.org/wiki/Trillian_(software)) which connects to almost every chat network imaginable in one program as well as keeps conversation logs. Essentially, what I'm trying to do is create a program that can view these chat logs.
Trillian stores these logs as "xml files" (as well as in plain text, but those are rubbish), but the problem is that they're poorly formatted and I have no experience with manipulating xml files.
Here's a sample:
<session type="start" time="1232818706" medium="FACEBOOK" to="1191881127" from="FName1%20LName1"/>
<message type="incoming_privateMessage" time="1232818721" medium="FACEBOOK" to="FName1%20LName1" from="1191881127" from_display="FName2%20LName2" text="btw%2C%20the%20rave%20costs%20%245%20to%20get%20in"/>
<message type="outgoing_privateMessage" time="1232818727" medium="FACEBOOK" to="1191881127" from="FName1%20LName1" from_display="FName1%20LName1" text="Hmm%2E%2E%2E"/>
I want to be able to "grab" the information in quotes, but I have no idea where to start. It's possible to do it using indexing and substring methods, but it gets kinda messy, and the xml log files have lots of special character encoding, so I would rather not reinvent the wheel.