http://bugs.winehq.org/show_bug.cgi?id=13963
--- Comment #6 from Damjan Jovanovic damjan.jov@gmail.com 2009-11-07 09:39:44 --- Created an attachment (id=24579) --> (http://bugs.winehq.org/attachment.cgi?id=24579) Generate XML files with libxml2
Please try this patch, it uses libxml2 to generate XML files instead of generating them internally, and libxml2 should escape everything properly.