Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB.NET read a large file in chunks

Status
Not open for further replies.

alexander1113

Programmer
Dec 26, 2004
26
US
Hi,
I'm trying to create a function in VB.NEt. What it does is it reads a large XML file in chunks to parse out each xml statement one by one. So that it will read the first chunk and see if that chunk contains the whole xml statement. If it doesn't it reads the next chunk and look for the ending xml tag </xml>. Once it does, it will write the xml statement and have a record of the file pointer of where it found the closing xml tag. Any ideas?

 
Take a look at the XMLTextReader class which should do it all for you. All you have to do is persist the nodes you want in some way.




Bob Boffin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top