473,507 Members | 2,416 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1468
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
8699
by: Ayende Rahien | last post by:
Serious problem I'm using Chris Lovett's SgmlReader class SgmlReader sr = new SgmlReader(); XmlDocument xdoc = new XmlDocument(); sr.DocType = "HTML"; sr.InputStream = new...
5
3584
by: KathyB | last post by:
If someone could just explain this to me...I just don't get it! I have an aspx page where I retrieve several session variables and use xmlDocument to transform xml file with xsl file into an...
2
6010
by: Graham Pengelly | last post by:
Hi I am trying to transform on System.Xml.XmlDocument into another using XslTransform without writing the object out to a file. I am guessing it should work something like this... public...
1
9622
by: Peter Nofelt | last post by:
Hey All, I'm running into this issue with parsing through an xml document by tag name. Below is an example xml document: File Name: things.xml <things> <people> <name>Peter</name>
5
10146
by: Rob Panosh | last post by:
Hello, I am trying to create a xmlDocument from as dataset. My code is listed below. All seems to go well until xmlDocument.Load(CType(ms, System.IO.Stream)) ... I keep getting the following...
1
2099
by: Gustaf | last post by:
I have a class that contains a certain kind of XML document. The input file is *not* an XmlDocument, but when loaded, I want it to work like the XmlDocument class, like: MyDocument doc = new...
2
1839
by: supercodepoet | last post by:
I have cXml document I want to load to parse. The document has a DOCTYPE element that points to an external dtd via http. When the document loads it trys a web request which I am assuming is to...
4
1666
by: DanThMan | last post by:
The following code works when I debug and when I install the software and run the .exe, but if I try to open the form in the designer (which causes this code to run), I get an error: Private Sub...
4
3260
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... We've got a lot of places in our code where we read relatively small xml user preference blocks. Currently that's creating a new XmlDocument in every spot. I was thinking we might see...
0
7319
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7031
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7485
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5042
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.