Ben a =E9crit :
[quoted text, click to view] > The data is already stored in XML. I'm just seeing if I can improve
> performance by reading the constant XML data into a HashTable at
> startup. The XML Document still resides in memory so I would not be
> doing I/O for each document query with XPath.
XML is just a way to exchange data with another AppDomain.
What you could do is design a class to maintain your data and
XmlSerialize it when you want to exchange data.
Collection-type attributes are supported by XML serialization.
In pseudo-code you would design a class like this :
class MyData
{
protected Hashtable m_Items;
public MyData()
{
m_Items=3Dnew Hashtable();
}
public Items[] Items
{
get
{
fill Array from m_Items (maybe you can cache the result
for better performance)
}
set
{
fill m_Items from Array (maybe you can cache the result
for better performance)
}
}
}
Regards.