Popular recipes by Julius Welby http://code.activestate.com/recipes/users/118679/2002-07-23T06:02:34-07:00ActiveState Code RecipesSwap one file extension for another throughout a folder tree (Python) 2002-07-23T06:02:34-07:00Julius Welbyhttp://code.activestate.com/recipes/users/118679/http://code.activestate.com/recipes/81931-swap-one-file-extension-for-another-throughout-a-f/ <p style="color: grey"> Python recipe 81931 by <a href="/recipes/users/118679/">Julius Welby</a> (<a href="/recipes/tags/files/">files</a>). Revision 4. </p> <p>This script will swap extensions on all files in the specified directory, and all of its subdirectories, and all of their subdirectories, etc. Define your arguments with care. Swapextensions.py will do what you tell it to do!</p> Converting a list of equal length lists into XML (Python) 2002-07-21T11:35:13-07:00Julius Welbyhttp://code.activestate.com/recipes/users/118679/http://code.activestate.com/recipes/66003-converting-a-list-of-equal-length-lists-into-xml/ <p style="color: grey"> Python recipe 66003 by <a href="/recipes/users/118679/">Julius Welby</a> (<a href="/recipes/tags/xml/">xml</a>). Revision 10. </p> <p>This module takes a list of equal length lists and converts it into XML.</p> <p>If the first sublist is a list of headings, these are used to form the element names of the rest of the data, or these can be defined in the function call. Root and "row" elements can be named if required.</p>