> + # Make a copy of childNodes as appendChild() will change it. > + children = [ c for c in node.childNodes ] > + for c in children: Probably better to write it this way -- more clear, works in 1.5: for c in node.childNodes[:]: /r$ -- Zolera Systems, Securing web services (XML, SOAP, Signatures, Encryption) http://www.zolera.com