Results 1 to 10 of 10

Thread: xml to dataset with percent completed

  1. #1

    Thread Starter
    Registered User
    Join Date
    Jul 2001
    Posts
    283

    xml to dataset with percent completed

    while loading a big xml file into a dataset, how can i get the percent completed?

    thanks...

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    There is no mechanism for getting this information. You would have to invent one. Most ideas will actually slow down the process.

    You can split the file into smaller parts and load them into the dataset in chunks showing progress with each chunk. Of course you would probably have to use a temp db (other than xml) to handle the chunks so you can can fill on the same dataset to combine the parts.

  3. #3

    Thread Starter
    Registered User
    Join Date
    Jul 2001
    Posts
    283
    how can i have a loop running at the same time as the
    database.loadXML("filename")
    command is runnning?

  4. #4

    Thread Starter
    Registered User
    Join Date
    Jul 2001
    Posts
    283
    ok. i learned how to use threading by now...

    but how can i get the status of the xml -> dataset conversion?

    probably using some kind of stream???

    any ideas at all?

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    What do you mean? You can make the call asnchronously and marshal the results back.

    This example uses a webservice but you can do the samething locally with a delegate:
    http://www.vbforums.com/showthread.p...hreadid=294948

  6. #6

    Thread Starter
    Registered User
    Join Date
    Jul 2001
    Posts
    283
    right now i load the dataset from xml in a seperate thread.

    what does asynchronously mean?

    with big xml files this takes about a minute. how do i get the percent completed at any time??

  7. #7

    Thread Starter
    Registered User
    Join Date
    Jul 2001
    Posts
    283
    ^ bump

    this is really important. any ideas?

    please...

  8. #8
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    How big is the xml file?

  9. #9

    Thread Starter
    Registered User
    Join Date
    Jul 2001
    Posts
    283
    can be very different. up to 25 megabyte maybe... why?

  10. #10
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Asynchronously means not in sync, as in an async call is not performed in sync with another but instead runs on its own thread/sync.

    The Dataset has no mechanism for reporting back to you the percent of completion. The closest thing I know of is faking it which is demonstrated in that example.

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