> 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