By chance somebody just reported the exact same bug on the xml mailing list with a patch so i'll try that Neil