By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,327 Members | 1,096 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,327 IT Pros & Developers. It's quick & easy.

XmlReader

P: n/a
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.
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
* Ben <gr*********@hotmail.com> scripsit:
[...]

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

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.