[XML-SIG] DOM Extension Proposal

Mike Olson Mike.Olson@fourthought.com
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
> object.

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
> http://www.python.org/mailman/listinfo/xml-sig

Mike Olson				 Principal Consultant
mike.olson@fourthought.com               (303)583-9900 x 102
Fourthought, Inc.                         http://Fourthought.com 
Software-engineering, knowledge-management, XML, CORBA, Linux, Python