[XML-SIG] Writing DOM-neutral code

Rich Salz rsalz@zolera.com
Wed, 05 Dec 2001 21:58:16 -0500


> Use the dictionary interface.

Okay.  So the following seems to be correct:
	_attrs = lambda E: (E.attributes and E.attributes.values()) or []

So my code can continue to do
	for n in _attrs(elt): ...
for example.

Thanks everyone.
	/r$
-- 
Zolera Systems, Securing web services (XML, SOAP, Signatures,
Encryption)
http://www.zolera.com