[XML-SIG] Element.firstChild() returns error

uche.ogbuji@fourthought.com uche.ogbuji@fourthought.com
Mon, 06 Nov 2000 17:42:09 -0700


> One more difference, perhaps: the Python mapping offers convenience
> container objects instead of following the IDL-style containers: e.g.
> a NodeList might be accessible as a Python sequence. "might be", since
> it is a list in minidom (i.e. no .item, .length), and an object
> following the IDL mapping in 4DOM (i.e. no __getitem__, __len__). I
> hope this can be fixed so that you can always treat .childNodes as a
> list.  If you only use .firstChild, .nextSibling, you won't even
> notice that difference.

?

The 4DOM NodeList class subclasses UserList so it does provide __getitem__, 
__len__ and all that.


-- 
Uche Ogbuji                               Principal Consultant
uche.ogbuji@fourthought.com               +1 303 583 9900 x 101
Fourthought, Inc.                         http://Fourthought.com 
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python