469,609 Members | 1,107 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

XMLDocument.Load Progess

Hi All,

Is it possible to examine the progress of a XMLDocument.Load method ?
Sometimes my documents might be quite large so I want to give the user some
indication of the size and progress.

another question i have is re' datagrid i hope someone might be able to help
with, say i have the xml

<employee>
<name>dave</name>
<image>Image1.jpg</image>
<employee>

I have lots of images that i use that are available by a url so is it
possible to show the image in a column ? i have the name and i can build a
url to the image but i'm not sure how to tell the datagrid to custom format
a column :S
thx,

Dave
Nov 18 '05 #1
3 1302
Dave Brown wrote:
Hi All,

Is it possible to examine the progress of a XMLDocument.Load method ?
Sometimes my documents might be quite large so I want to give the user some
indication of the size and progress.

another question i have is re' datagrid i hope someone might be able to help
with, say i have the xml

<employee>
<name>dave</name>
<image>Image1.jpg</image>
<employee>

I have lots of images that i use that are available by a url so is it
possible to show the image in a column ? i have the name and i can build a
url to the image but i'm not sure how to tell the datagrid to custom format
a column :S


It might be possible to call Load() asynchronously and examine the
XMLDocument object to see what's inside.

--
Ryan Walberg, B.Sc., MCSD, MCSD for .NET
ge*******@nospam.yahoo.com.nospam
Nov 18 '05 #2
Dont know about XML, but it may be like HTML tables, in that the whole thing
has to load before displaying. perhaps if you can break the XML into small
segments you'll see the data loading segment by segment, this worked for me
in HTML
"Dave Brown" <dave.AT.dbws.net> wrote in message
news:O0**************@TK2MSFTNGP11.phx.gbl...
Hi All,

Is it possible to examine the progress of a XMLDocument.Load method ?
Sometimes my documents might be quite large so I want to give the user some indication of the size and progress.

another question i have is re' datagrid i hope someone might be able to help with, say i have the xml

<employee>
<name>dave</name>
<image>Image1.jpg</image>
<employee>

I have lots of images that i use that are available by a url so is it
possible to show the image in a column ? i have the name and i can build a url to the image but i'm not sure how to tell the datagrid to custom format a column :S
thx,

Dave

Nov 18 '05 #3
For question 1, it doesn't seem that the XMLDocument class exposes any
events during the Load process. I know that the XmlTextReader class
allows you to control the navigation of the XML file, so you can
monitor the status. However, it is a forward-only navigation, and it
does not provide an in memory copy of the xml file. If you only need
to access the XML file once, then the XmlTextReader might help, but if
you need to constantly access the xml file, then you might have to
stick with the XMLDocument class.

If you are able to monitor the status, how are you displaying the
status to the user on a webpage? Is the user constantly polling for
the status from the web server?

Tommy,

"Dave Brown" <dave.AT.dbws.net> wrote in message news:<O0**************@TK2MSFTNGP11.phx.gbl>...
Hi All,

Is it possible to examine the progress of a XMLDocument.Load method ?
Sometimes my documents might be quite large so I want to give the user some
indication of the size and progress.

another question i have is re' datagrid i hope someone might be able to help
with, say i have the xml

<employee>
<name>dave</name>
<image>Image1.jpg</image>
<employee>

I have lots of images that i use that are available by a url so is it
possible to show the image in a column ? i have the name and i can build a
url to the image but i'm not sure how to tell the datagrid to custom format
a column :S
thx,

Dave

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Ayende Rahien | last post: by
2 posts views Thread by Graham Pengelly | last post: by
5 posts views Thread by Rob Panosh | last post: by
1 post views Thread by Gustaf | last post: by
2 posts views Thread by supercodepoet | last post: by
4 posts views Thread by =?Utf-8?B?TWFyaw==?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.