Results 1 to 9 of 9

Thread: Pocket PC Use XML Database ?

  1. #1

    Thread Starter
    Addicted Member Tengkorak's Avatar
    Join Date
    Nov 2006
    Posts
    240

    Pocket PC Use XML Database ?

    Can VB.NET 2003 For Pocket PC use the XML File to be Database not use Web Client ?

    if it can. can you give me the tutorial for this Problem ?
    i has been try for this application, but i have problem on the Path (File Directory) XML File not found.

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Pocket PC Use XML Database ?

    There should be no problem. What is your path, and are you sure the file exists in that path?

    Pete

  3. #3

    Thread Starter
    Addicted Member Tengkorak's Avatar
    Join Date
    Nov 2006
    Posts
    240

    Re: Pocket PC Use XML Database ?

    my problem on the path location. when i start my program, then i try read the xml file there error FileNotFound. it's always happend.

    can you have the sample for my problem ?

  4. #4
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Pocket PC Use XML Database ?

    I ask again, what is your path set to?

  5. #5

    Thread Starter
    Addicted Member Tengkorak's Avatar
    Join Date
    Nov 2006
    Posts
    240

    Re: Pocket PC Use XML Database ?

    this my code :

    VB Code:
    1. Function readFileXML() As Boolean
    2.  
    3.         Try
    4.             Dim reader As New XmlTextReader("My Documents\data.xml")
    5.  
    6.             While reader.Read()
    7.                 MsgBox(reader.Name)
    8.             End While
    9.             Return True
    10.         Catch ex As Exception
    11.             MsgBox(ex.Message)
    12.             Return False
    13.         End Try
    14.     End Function

    i save on my document directory.

    but when i start my program i got the error : FileNotFound

    how to set directory on pda ?

  6. #6
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Pocket PC Use XML Database ?

    Hi,
    that code looks correct so I suggest data.xml does not exist in your my documents folder.

    You doing this on a device or emulator?

    Pete

  7. #7

    Thread Starter
    Addicted Member Tengkorak's Avatar
    Join Date
    Nov 2006
    Posts
    240

    Re: Pocket PC Use XML Database ?

    It i do on Emulator.

    Now i know, that we must have data.xml on pocket pc.
    and whan i start my program and show the error becouse the data.xml there on my documents folder(Desktop not on PDA).

    thanks

  8. #8
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Pocket PC Use XML Database ?

    Hi,
    your desktop is not available to the emulator, so it will not find files on your PC.

    Copy the files to the emulator, or preferably, use a device

    Pete

  9. #9

    Thread Starter
    Addicted Member Tengkorak's Avatar
    Join Date
    Nov 2006
    Posts
    240

    Re: Pocket PC Use XML Database ?

    ok thank you pete for your answer.

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