Results 1 to 5 of 5

Thread: readxml function

  1. #1

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    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

  2. #2
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    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.

  3. #3
    Hyperactive Member
    Join Date
    May 2005
    Posts
    258

    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

  4. #4
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    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!!

  5. #5

    Thread Starter
    Frenzied Member vbgladiator's Avatar
    Join Date
    May 2001
    Posts
    1,950

    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
  •  



Click Here to Expand Forum to Full Width