>>The best I could do right now is to add this condition:
>>
>>
>>IF AT('<VFPData>',loXML.XML)=0
>> MESSAGEBOX('No record is present.')
>> RETURN
>>ENDIF
>>
>>
>>But, it would be nice to set the XML cursor from the server in a way that it would include the structure so even an empty cursor would be able to be reconstructed as the client side. So, we would be able to avoid this condition. The same code as before would then work.
>
>It does if you ask for a schema.
Yes, I discovered that after. But, as mentioned, there is still a problem as it creates an empty record when the cursor is empty. So, for now, I'll just use that condition to see if I have a cursor or not.