[XML-SIG] DOM Extension Proposal
Wed, 21 Jun 2000 11:57:57 -0600
Paul Prescod wrote:
> Insofar as the DOM does not address Python's syntax overloading, it does
> not say what we must do in our overloading.
> I propose that we extend the DOM with a new type AttributeList that is a
> subclass of NamedNodeMap:
> It would override __getitem__ to return the *value* of the reference
> attribute node instead of a (often useless and annoying) attribute node
We inherit NamedNodeMap from UserDict now so we are not too far off.
However, we do return the Attribute node. I suppose we could override
this to return just the value of the node.
Anyone else's thoughts?
> Paul Prescod - ISOGEN Consulting Engineer speaking for himself
> "Music is the stuff between the notes." - Claude Debussy
> XML-SIG maillist - XML-SIG@python.org
Mike Olson Principal Consultant
email@example.com (303)583-9900 x 102
Fourthought, Inc. http://Fourthought.com
Software-engineering, knowledge-management, XML, CORBA, Linux, Python