Categories | Question details Back To List | ||||||||||||||
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 <ROOT> 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"?> <ROOT> <rows> <head> <column width="35" type="rotxt" align="right" sort="int">Cód</column> <column width="*" type="edtxt" align="left" sort="str">ANO_ORIG</column> <column width="*" type="edtxt" align="left" sort="str">ANO_DEST</column> <settings> <colwidth>px</colwidth> </settings> </head> <row id="2"> <cell>1</cell> <cell>FY08</cell> <cell>2008</cell> </row> </rows> Answer posted on Nov 29, 2007 01:59 The <root> 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 ) Answer posted by Rafael Marques on Nov 29, 2007 09:47 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 Answer posted by Support on Nov 29, 2007 10:03 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. Answer posted by Rafael Marques on Dec 02, 2007 19:37 Sorry, no whitespace before :( Used "if browse" solution. Thanks anyway. Rafael Answer posted by Support on Dec 03, 2007 03:38 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. Attachments (1)
Answer posted by Rafael Marques on Dec 03, 2007 06:57 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. Attachments (1)
|