On 6/29/07, Daniel Jacobowitz <[EMAIL PROTECTED]> wrote:
Package: liferea
Version: 1.2.16b-1
Followup-For: Bug #430782

The error message is accurate:

        XML Parsing Error: prefix not bound to a namespace
        Location: file:///
        Line Number 450, Column 119:

The XML isn't valid, but many feeds seem to have this level of
inaccuracy and it would be much more useful for liferea (or the
renderer) to cope.  LiveJournal seems to be pretty careless though; it
also outputs some "utf-8" XML files that are not valid utf-8 :-(

I don't think the error message is comingf from liferea, but I don't
know if it comes from libxml2 or xul.

You are correct this is an error message given by libxml2.

But you are totally wrong about handling invalid XML. The core
idea of XML is to guarantee applications a correct content encoding
by ensuring well-formedness and validity of the given data.

So suggesting to have weak XML parsing invalidates the idea of XML itself.
Also what should a parser do with a file that contains for example partly
UTF-8 content and partly Latin-1? There is no way to decide what to do
with the byte mess.

With XML the rule is applications should *ALWAYS* refuse non-wellformed
content. Also when using a library for parsing the application has no
way to force tolerant parsing. As for libxml2 I know for sure that the
author clearly disagrees with applications wanting to do tolerant parsing.

Lars


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to