Incorrect XML / LoadXML - FF

Hi!



I’m getting an error while loading in FF.

IE works pretty fine!



I tried to parse the generated XML in a online validator. Got an error and add at BOF and EOF.

Still working in IE, but FF not.

I’ve also tried response.setContentType, etc.

By the way, I’m using Java/JSP.

Could you help me?



Thanks in advance.



Best Rgds,

Rafael



<?xml version="1.0" encoding="iso-8859-1"?>







C�d

ANO_ORIG

ANO_DEST



px







1

FY08

2008





The tag is unnecessary
Problem with FF probably caused by whitespaces before <?xml declaration - parser of FF will count XML as incorrect if any whitespace encountered before <?xml declaration
So you can

a) check your jsp script, that no whitespace outputed before <?xml declaration

or

b) remove <?xml ... ?> from your output at all ( by some reason both IE and FF parse XML correctly without <?xml declaration )

Thanks!
Worked great.
But IE stops while removing <?xml ?> declaration.
OK, I’ll get which browser is been used and remove <?xml ?> declaration in case of FF…
Is there any other way?

Thanks once again.


Best Rgrds,
Rafael  Marques

The best solution - locate why whitespace appears in output before <?xml and remove them - this will solve issue and XML will be parsed correctly in both browsers.

Sorry, no whitespace before :frowning:
Used “if browse” solution.
Thanks anyway.

Rafael

Please try to use attached dhtmlxcommon.js instead of original one - it works the same but tries automatically recover if problem with incorrect file start in ff occurs.

dhtmlXCommon.zip (4.99 KB)

No… FF no signal, seems that there is no component inside. No error appears, but no grid to me.
And IE, error at (undefined _isIE ).
I’m sending my js.
Thanks.

dhtmlxcommon.js.zip (5.15 KB)