"viny" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > When creating an xml file, wine shouldn't create header automatically. > Is that difficult to fix this bug > (http://bugs.winehq.org/show_bug.cgi?id=10802) ? I've looked at domdoc.c > but I'm not an expert... > Hi Viny, The main issue here is that PI nodes are not suppost to be called xml. In MSXML3 this is a special case and isnt assigned as a PI node as such, instead the string is parsed for encoding, version, etc. This information is then used when saving.
So what need to be done 1. When we assign a PI node with a name xml, parse for encoding, etc and store then in the domdoc structure for later 2. In the domdoc_save, change xmlDocDumpMempory to use xmlDocDumpMemoryEnc with the parsed encoding above. Best Regards Alistair Leslie-Hughes