|
-
Jan 31st, 2006, 10:51 AM
#1
Thread Starter
Frenzied Member
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,
Don't anthropomorphize computers -- they hate it
-
Jan 31st, 2006, 11:09 AM
#2
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.
-
Jan 31st, 2006, 11:28 AM
#3
Hyperactive Member
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.
Currently Using: VS 2005 Professional
-
Jan 31st, 2006, 11:30 AM
#4
Re: readxml function
In the dataset's readxml method you can select how to handle the schema.
TPM
Add yourself to the VBForums Frappr Map!!
-
Jan 31st, 2006, 01:45 PM
#5
Thread Starter
Frenzied Member
Re: readxml function
yeah, I'll look into the schema handling. thanks.
Don't anthropomorphize computers -- they hate it
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|