http://bugs.winehq.org/show_bug.cgi?id=26434
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com 2011-03-15 15:11:02 CDT --- The problem is a leading \n most likely.
--- L"\n<?xml version="1.0"... ---
Specification explicitly says that document prolog should be exactly at the start:
http://www.w3.org/TR/xml/#NT-prolog
[22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)? [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'
so no space characters is allowed before it.
I'll add a test for that, but before that please try that native one really eats such input, cause it could be a problem somewhere else.