Anthony Baxter writes: >Suggestions? Should I be quoting this by hand? Should I be hunting into >the code to find out where it's getting it wrong? It's clearly a bug; the toxml() method of the Element class should be escaping ' in attributes. The " doesn't need to be escaped inside an attribute surrounded by ' characters, though. --amk