-
readxml function
Hey,
I have an application on the desktop that takes appointments from a database and stores them in a datatable. The datatabe is then saved using the writexml function onto the hard disk. At that time it is copied onto a pocket pc. an application is then started on the pocket pc that attempts to read the datatable using the readxml function but keeps generating an error.
DataTable does not support schema inference from Xml.
Is the message. Does anyone know why this happens? Also, is this the most efficient way to do this. The application will open the datatable xml file and populate the pocket outlook with the appointments using poom.
Thanks,
-
Re: readxml function
Are you sure you're using a datatable to write xml? I only see the writexml method as being available for a dataset object.
-
Re: readxml function
In .NET 2.0 compact and regular, the DataTable now has a .WriteXML method to it. If you are using v1.1 then you will not be able to do it, that I know of.
-
Re: readxml function
In the dataset's readxml method you can select how to handle the schema.
-
Re: readxml function
yeah, I'll look into the schema handling. thanks.