I have an XML file which contains 'meta data' for my application such as values for combo boxes, etc.
It's structure is like this:
<ComboValue3 attr1="1" attr2 = "a">value1</ComboValue3>
<ComboValue3 attr1="2" attr2 = "b">value2</ComboValue3>
<ComboValue3 attr1="3" attr2 = "c">value3</ComboValue3>
<ComboValue3 attr1="4" attr2 = "d">value4</ComboValue3>
The structure never goes any deeper than that,and as you can see there are attributes with some of the nodes.
This data is used all over in my application, and at the moment I am loading this file into a global XMLDocument at startup and using XPath values to retrieve the data when it's needed.
What I would like to know is if using an XMLReader would be better in terms of speed.
Most combo boxes are populated when the form they are on is loaded, but some are populated dynamically in response to user input.
Any input regarding this would be great, and if anyone could offer some guidelines about when XMLDocument or XMLReader is best to use.