http://bugs.winehq.org/show_bug.cgi?id=16453
--- Comment #16 from Nikolay Sivov bunglehead@gmail.com 2010-02-16 16:37:48 --- (In reply to comment #15)
Regarding comment 6 it's not clear where second declaration comes from. Was
I believe it's added by the installer.
So there's two problems with that: - builtin doesn't create PI node for xml declaration; - xml declaration always added by libxml2 saving logic.
As a solution we should always disable implicit declaration from libxml2 (which is trivial) and manually create additional node on document creation (which I'm not sure how to do in a clean way).