XmlReader

  • Thread starter Thread starter Ben
  • Start date Start date
B

Ben

Hi,

I'm just moving to VB.NET and I'm trying to load a recordset intoan XMLReader and loop through the records. When I use the.ReadElementString() method to get the next 'record' if it hasreached the last record (eof) it fails with "Invalid attempt toread when reader is closed". It doesn't seem capable of findingthis out until the error has occured though (Readstate isinteractive prior to the failure and EOF is false.)

Is this limited information enough for anyone to tell me whereI'm going wrong ? (currently as I'm in the early stages I haveif err.number = 5 then err.clear which is a bit crap so ...)

Thanks,

Ben.
 
* Ben <[email protected]> scripsit:
[...]

Please configure your newsreader to break lines after 76 characters,
your post is "unreadable" for my newsreader.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top