Getting ‘XML parsing failed’ errors when visiting some pages?
Friday, July 9, 2010 7:42:33 PM
Opera features an XML processor. On some pages Opera will display an “XML parsing failed” error. But what does this really mean? Wikipedia knows the answer of course: “An XML processor which encounters […] a violation is required to report such errors and to cease normal processing.” Opera is required by the standard to display an error for non-valid XML documents.
The most common source of this error is an unescaped ampersand, less-, or more than (&, <, >) character; or an element that was opened but not properly closed. (Both displayed in the right side illustration.)
But what to do when you run into a non-valid document? The short answer is: Click the Reparse document as HTML link. This will make Opera treat the document as HTML rather than XML and thus work around the issue.
The long answer is: inform the site owner. By emailing the site owner the link to the page that displays the error, and the error message should be enough for them to sort out their invalid document. If the site owner is unwilling to correct their mistake, you can also make Opera aware of the problem using the Help: Report Site Problem menu item. “xml parsing and syntax error” would be a helpful comment.
I hope this article will make you better equipped to deal with this problem in the future.