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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A fast way to loop and create a xml file using DOM VB

Status
Not open for further replies.

91731212

Programmer
Sep 7, 2001
2
DK
How do i creat an xml file using DOM in VB.
I would like to loop thru an .txt file that is about 58000kB
(with 10 per record/row)
and creat an XML fil from it using DOM and VB. I know how to open and loop the file, But to creat an xml file is a problem...

/Jocke
 
Hi Jocke

58MB text file to xml with DOM this need a lot of memory, because the whole dom tree is in the memory. if you don't need access to specified nodes then it is maybe better to write a textfile with all these tags.

maybe this help you
 
Thanks
I made a couter that saved teh xml file after 10000 rows, and opend the fil agin and read 10000 more rows and so on... it worked... and it was fast too...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top