:: Forum >>

Mozilla error console & tabs-code sample

Mozilla is throwing "incorrect content after an XML element in document" error and "sintax error" also for the pages that contain only text.
It is executed normally, so appears in error , but seems that is just an alert. ( Moz v 7.0.1 to 16 )

I've tried request.setParameter("Content-Type",'text/xml' );
and all variations of it, without much success.
If every line is removed except the <script> Tags, then says "NOT WELL FORMED"

I suppose that sending correct headers from server solves it , but Anyone knows a workarrond to avoid this kind of errors offline ?

Thanks
Carlos
Wednesday, November 14, 2012
OK, found the reason, it expects a well formated xml doc , so surrounding the full page inside another tag, fixed it all.

Also using the header <?xml version="1.0" encoding="UTF-8" ?>
for future conflicts, but not necessary.

<?xml version="1.0" encoding="UTF-8" ?>
<test>
Page 2, still not much text here...
</test>
Carlos
Wednesday, November 14, 2012

This topic is archived.


Back to support forum

Forum search