[lxml-dev] Possible bug
Stefan Behnel
stefan_ml at behnel.de
Fri Mar 20 08:23:48 CET 2009
Bob Kline wrote:
> Stefan Behnel wrote:
>> The "something usable" just means that while it may not succeed to parse
>> all of a broken document 'correctly' (whatever that means in this
>> context),
>> it will always return a document that is as complete as possible.
>
> Right. It just won't necessarily be an XML document.
At least, it will always be a tree structure. Your case is really
exceptional here, as it produces non well-formed content.
> I believe I'll be able to work around the problems (though not
> necessarily by just blowing away the comments altogether). It just
> wasn't clear to me based on the language in the documentation whether
> you'd be interested in a bug report based on my original interpretation
> of that language. I see now that the answer to that original question
> is "no."
It's not really "no". It's just that this is a rare case and there is
little one can do about it. But there's always space for better
documentation - contributions very welcome.
Stefan
More information about the lxml-dev
mailing list