On 7/24/06, Stefan Behnel <behnel_ml@gkec.informatik.tu-darmstadt.de> wrote:
Hi all,
as I was working on the C-API anyway (capi branch), I decided to add a little
external module with different ways of determining the Python element class
for a libxml2 node. The "lxml.elements.classlookup " module currently
implements three different ways of doing this:
* ElementDefaultClassLookup always uses the default class
* ElementNamespaceClassLookup is the default namespace lookup mechanism
* AttributeBasedElementClassLookup determines the class by looking up the
value of a specific attribute in a dict. It falls back to the default classes.
Other ways are of cause possible, so if anyone has an idea what to add, I'm
open for suggestions.