The code goes like that:
HRESULT hr = OpenStreamOnFile (MAPIAllocateBuffer, MAPIFreeBuffer,STGM_READ
| STGM_WRITE, xmlFile, NULL, &pXmlStream);
char buff[100]="Hello";
LARGE_INTEGER li = {0, 0};
HRESULT _hh = pXmlStream->Seek(li,STREAM_SEEK_SET,NULL);
unsigned long x;
hr = pXmlStream->Write(buff,5,&x);
Thanks you,
James