![]() |
[xml] Can anyone explain why saving pm's in XML produces a code only file?
Using the pm's archive abilities to get a XML file, I find the file contains everything. Though... it looks like a bunch of code that's supposed to be rendered to produce a nice looking result. Can anyone try it and see if there is an formatting error keeping the XML file from showing up correctly? I've tried opening it in IE 6 so far.
Thanks! :D |
I'd check it, but I don't have any PMs in my folders right now. PM me so I'll have some data to work with.
|
In order to expedite analysis, I sent myself a couple of PMs and downloaded the XML archive. Curiously, Internet Explorer renders the XML verbatim using its default stylesheet, whereas Mozilla removes the message body from its CDATA section, escapes the XML entities (<, >, and &), and appends the message body text directly to the message element. In both cases, the browser renders a "data-only" presentation because that's what its default stylesheet is supposed to do. If you want the data in a "pretty" format, such as an HTML table, then you need to write your own XSL stylesheet and run an XSLT transform against the XML document using that stylesheet. See the XSLT tutorial at http://www.w3schools.com/xsl/default.asp for more on this.
|
That's what I thought!
Err... is there a basic format you could write up for me? Nothing fancy. But whereas I can read the data much better and in a more presentable fashion. Thanks for the help! |
I'll try to whip up an HTA for you this weekend. It's been too since I messed with XSLT to remember it off the top of my head, but I have an MP3 jukebox I wrote around here somewhere that I can steal some code from.
|
Here's a very basic viewer. Extract the files and launch private_message_viewer.hta. The interface is self-explanatory.
http://binaryprophets.clarkworx.com/...age_viewer.zip |
THANK YOU VERY MUCH! THAT'S EXACTLY WHAT I NEEDED!
|
All times are GMT -8. The time now is 06:08 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project