is there a way to display a large xml file of bookmark/link format in a menu structure in a C# windows application?
Posted on 2010-09-20
the issue is the following: i'm trying to display a catalog of bookmarks maintained in an XML file. on application load, the xml file is read and parsed into a mirrored structure of ToolStripMenuItems (folders and links). a recursive function is used to traverse the file, as is customary for navigating tree structures, and the file loads fine when it is small. However, both the time required to execute the recursion and the memory required to hold all of the objects becomes absurdly large (12MB xml file = 10-15seconds to load/traverse = 750MB-1.5GB of memory depending on OS and system RAM). In .net / web world, I would be able to set the datasource for the menu structure to the xml file and let it manage/run that way, but that functionality does not seem to exist in the client-side windows app.
does anyone have any insight into a way to handle a large bookmark file or bind a large xml-based menu structure in a windows C# application?