Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > XML Reading speed question
 

XML Reading speed question

I have program wich uses  database.ReadXml(Environment.CurrentDirectory + "\data.xml") to read xml database (database is dataset).

data.xml is 5.28mb why it takes so long to read it (about 9min)...

1.7mb is read in few seconds...

My computer is: Adm Athlon Xp 3000+ 512mb memory.
MigrationUser 1  Tuesday, June 29, 2004 9:05 AM
When you save the XML are you saving it with the schema? if not it has to rebuild the schema and then import the data. If you save with the schema (writexml) option turned on then it will read faster since it won't have to figure out how to design the tables.

Hope this helps
MigrationUser 1  Friday, July 02, 2004 11:17 AM
Thanks a lot. Now it's much faster.
MigrationUser 1  Wednesday, July 07, 2004 4:54 AM

You can use google to search for other answers

Custom Search

More Threads

• Error icon tooltip not visible when editing a cell
• Will calling listview.refresh() frequently slow down my application?
• How can we doing like a menu (pic inside)
• Datagridview sorting but firstrow should not get changed
• Suppressing repeating values in rows with the DataGridView
• how to bind datareader to datagridview in vb.net2005
• Databinding combobox, a MayB_Strange but surely_Valid requirement
• How do I tell when the user deselects all items in a ListView control?
• Across Row Tabbing in DataGridView Control
• Calculations in DataGridView