     {
         var oldSettings :Object = XML.settings();
         try {
-            XML.setSettings(settings);
+            XML.setSettings(settings); // setting to null resets to all the defaults
             return fn();
         } finally {
             XML.setSettings(oldSettings);

     * broken by you.
     *
     * @param xml the xml value to Stringify.
     * @param settings an Object containing 
     * @see XML#toString()
     * @see XML#setSettings()
     */

     * broken by you.
     *
     * @param xml the xml value to Stringify.
     * @param settings an Object containing your desired XML settings, or null (or omitted) to
     * use the default settings.
     * @see XML#toXMLString()
     * @see XML#setSettings()
     */
