[XML-SIG] Differences between 4DOM and cDomlette

Mike Olson Mike.Olson@fourthought.com
05 Dec 2001 10:21:05 -0700


On Tue, 2001-12-04 at 20:41, Rich Salz wrote:
> For speed reasons, I'm looking at using cDomlette.  So far, the only
> difference I've noticed is cDomlette stores attributes as a dictionary,
> while 4DOM (pyxml dom) stores them as a list of attribute nodes.  So I
> ahve to do
> 	if using_domlette:
> 		attrs = lambda E: E.attributes.values()
> 	else:
> 		attrs = lambda E: E.attributes

I thought 4DOM's NamedNodeMap support the dictionary interfaces.

> 
> Any other things I need to be aware of?  Is childNodes handled the same
> way?
Shouldn't be.

> 	/r$
> 
> -- 
> Zolera Systems, Securing web services (XML, SOAP, Signatures,
> Encryption)
> http://www.zolera.com
> 
> _______________________________________________
> XML-SIG maillist  -  XML-SIG@python.org
> http://mail.python.org/mailman/listinfo/xml-sig
-- 
Mike Olson                                Principal Consultant
mike.olson@fourthought.com                +1 303 583 9900 x 102
Fourthought, Inc.                         http://Fourthought.com 
4735 East Walnut St,                      http://4Suite.org
Boulder, CO 80301-2537, USA
XML strategy, XML tools, knowledge management