Re: making mozilla's xml to behave in a non-standard way

dvdplm <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Guest of TISCALI - FRANCE
Message-ID <[email protected]>
Marco Milanesi wrote:
> hi, this is a strange question I know, but I hope to get some responses:
> 
> 	I have a web application that I can't modify. it outputs an xml to
> the browser with newlines and spaces at the beginning of the xml.
> 
> now the question. How can I modify this behaviour of mozilla? how can it
> be more tolerant to this malformed xml?
> 
> If you have any hints on where to look at the code or if it's possible
> to write an extension (mozilla-firefox) please let me know.
> 
> thanks.
> 
> ciao,
> Marco
Maybe you could avoid problems having a tiny page with a script that 
loads the bad XML (using XmlHttpRequest  ) and parse the result using 
responseText, cleaning things up a bit and then parse it using the 
DOMParser object (also part of XML extras).
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.