Hi,

I'm currently trying to write an extension that would allow Mozilla to display a specific XML file format. So far I've managed to create a simple stub for intercepting application/foo+xml but I would also need to able to intercept text/xml and depending on some requirements I would need to do custom handling here.

I'm a bit confused how to intercept the loading of text/xml since creating a new nsIStreamConverter for text/xml does not really do anything. My guess is that I would need to use nsIStreamObserver or nsIDocLoaderObserver in some way. I've previously tried using an overlay that listens to the load event of the browser but this does not really work for plain text/xml documents because the XML pretty print is messing everything up.

Is there any documentation available that explains this? If not, can anyone give me some hints to where to start?

erik

ps. Another thing that I've noticed is that the page info in Mozilla does not use the original mime type. Is there any way to do this?
_______________________________________________
Mozilla-netlib mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to