David, I finally had a chance to have a closer look at the quick patch I provided several days ago. Attached is another patch which provides for unit tests for utest_xml.py, as well as a more comprehensive patch for quoted.py that resolves the issues uncovered in the tests I finally got round to writing. ;-)