Why does copying an XML file from Windows Server 2008 R2 64-bit to Windows XP 32-bit change the file?

Posted by Alex In Paris on Super User See other posts from Super User or by Alex In Paris
Published on 2012-03-30T09:11:51Z Indexed on 2012/03/30 11:33 UTC
Read the original article Hit count: 420

What I do:

  1. Copy an xml file (ctrl+C) on a Win Server 2008 machine.
  2. Minimize mstsc.exe (remote connection app).
  3. Paste the xml file on to my WinXP machine (ctrl+V).

The result:

All of the original contents are still present but another bit is appended at the end of it.

E.g. the proper end of the file looks something like this:

<ApplicationName>MyApp</ApplicationName>
</ReceivePort>
</ReceivePortCollection>
<PartyCollection xsi:nil="true" />
</BindingInfo>

But, after the copy, it looks like this:

<ApplicationName>MyApp</ApplicationName>
    </ReceivePort>
    </ReceivePortCollection>
    <PartyCollection xsi:nil="true" />
    </BindingInfo>al, PublicKeyToken=3zzf3xxxadyyy35" Type="1" TrackingOption="ServiceStartEnd MessageSendReceive PipelineEvents" Description="" />
      <ReceivePipelineData xsi:nil="true" />
      <SendPipeline xsi:nil="true" />
      <SendPipelineData xsi:nil="true" />
      <Enable>true</Enable>
      <ReceiveHandler Name="WCF_OracleDB_Rx" HostTrusted="false">
        <TransportType Name="WCF OracleDB" Capabilities="779" Configuratio

The extra bits it adds are things that come from earlier in the XML file. If I do the copy multiple times, the extra bits are always exactly the same but another XML file will add different lines.

Extra information:

If I copy/paste the file, as above, but first enclose it into a zip file I do not have the same problem. I.e. the file copies properly and without any extra surprises.

If I do a copy/paste from a Windows Explorer window that's opened to the folder on the remote machine, I do not have the same behavior. I.e. the file copies properly and without any extra surprises.

Question:

Why does this happen?

© Super User or respective owner

Related posts about Windows

Related posts about windows-xp