J
John Kirk
Hi all,
I'm using a Type Library in VB6 that I found somewhere through a link in
this group to help copy XML files from my PPC device to the desktop using
RAPI. The copy seems to work fine except that the files I'm copying across
won't open properly when they get to the desktop. If I open the XML file in
Internet Explorer it reports:
End of file reached in invalid state for current encoding.
and then gives me the line number it occurs on (the last one) and the text
"</xml>"
If I open the files in notepad they look fine. So here's the odd thing. If
I don't make any changes to the document while I have it open in notepad but
do a "File / Save" anyway, then the document opens fine in IE.
So I guess the XML file is missing some sort of EOF marker or has the wrong
type of marker or something? If I copy the same file across using
activesync it works fine.
The copy is done by reading the file into a binary array and then writing
that back out using the VB6 'Put' function.
Anyone have any ideas?
John
I'm using a Type Library in VB6 that I found somewhere through a link in
this group to help copy XML files from my PPC device to the desktop using
RAPI. The copy seems to work fine except that the files I'm copying across
won't open properly when they get to the desktop. If I open the XML file in
Internet Explorer it reports:
End of file reached in invalid state for current encoding.
and then gives me the line number it occurs on (the last one) and the text
"</xml>"
If I open the files in notepad they look fine. So here's the odd thing. If
I don't make any changes to the document while I have it open in notepad but
do a "File / Save" anyway, then the document opens fine in IE.
So I guess the XML file is missing some sort of EOF marker or has the wrong
type of marker or something? If I copy the same file across using
activesync it works fine.
The copy is done by reading the file into a binary array and then writing
that back out using the VB6 'Put' function.
Anyone have any ideas?
John