[XML-SIG] Alternatives for xml.dom.ext.reader.HtmlReader?
iwan at reahl.org
Fri May 30 16:44:31 CEST 2008
We have code using PyXML modules xml.dom.ext.reader.HtmlReader and
After an upgrade from ubuntu gutsy to hardy, this now breaks, because
the hardy release moved python-xml from the default path (see
We have tried the workaround suggested in the changelog, which is to do:
But, that has to be done before the first xml import, and determining
the first xml import is a bit difficult in a large app...
We're using these to solve the following problem:
- to read possibly erroneous HTML (not XML) into a dom tree
- and then to create an html fragment (part of the complete doc) which
we have to render as a chunk of HTML (not XML) again.
We decided on using these, based on
We don't really want to use libxml2dom as also suggested there, since it
is not packaged for ubuntu (and dealing with ad-hoc unpackaged things
would be a nightmare in our environment).
We also tried the following at the start of the problematic module:
But this also does not work...
Any pointers to a quick workaround would be appreciated. (And to "the
right way" too)
More information about the XML-SIG