How is the status being reported? What events are occurring to indicate your progress in parsing? You can't craete a progress bar unless something occurs that indicates that the progress bar needs to be updated, such as a custom event or a timer tick, and your example code doesn't include anything like that. For instance, a timer that ticks every now and again can invoke a routie that looks up a value and updates progress accordingly. Note that it is possible to use a progress bar that simply indicates something is happening, without indicating how far along the process is - not as good as showing percentage complete, but it mau be suitable in your case. That might be what you need for the XML, as I'm not sure you can calculate ahead of time how many elements you need to extract (although the file size could be used as a guide).
↧