http://bugs.winehq.org/show_bug.cgi?id=22020
--- Comment #22 from Nikolay Sivov bunglehead@gmail.com 2010-03-14 08:04:50 --- (In reply to comment #21)
Almost, but you should pass newstring+2 to loadXML.
&newstring[2] to be exact.
About nulls inside string - we could use SysAllocStringLen to create with any number of nulls inside.