N
niteshs
Hi guys ok ok I know i can read the xml directly to a treeview, but I
think the configuration block is more useful for me since it caches
nicely and i like frameworks to be used.
Ok what i wanted to do was have a nicely structured config file to read
into a treeview, e.g
<Node>
<Node1.1></Node1.1>
<Node1.2></Node1.2>
<Node>
<Node2>
<Node2.1></Node2.1>
<Node2>
all fine and dandy but i cant read this out of 1 config file eg.
here's the config file
<DealTreeSettings>
<xmlSerializerSection type="ConfigurationQuickStart.TreeData
ConfigurationRuntimeData, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null">
<TreeData xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SpotName>xxxxx</SpotName>
<PreciousName>xxxxxx</PreciousName>
</TreeData>
<TreeData1 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<FxOptionName>yyyyyy</FxOptionName>
</TreeData1>
</xmlSerializerSection>
</DealTreeSettings>
Now I cant create mulitple xmlSerializerSection so how do i read all
the nodes ? ie read both TreeData and TreeData1.
i can read the first lot of nodes by name nicely from the class and
populate the treeview eg <SpotName>,<PreciousName>
problem is i dont want to add all the nodes under the TreeData since i
dont want additional logic when building the view.
Cheers nitesh
think the configuration block is more useful for me since it caches
nicely and i like frameworks to be used.
Ok what i wanted to do was have a nicely structured config file to read
into a treeview, e.g
<Node>
<Node1.1></Node1.1>
<Node1.2></Node1.2>
<Node>
<Node2>
<Node2.1></Node2.1>
<Node2>
all fine and dandy but i cant read this out of 1 config file eg.
here's the config file
<DealTreeSettings>
<xmlSerializerSection type="ConfigurationQuickStart.TreeData
ConfigurationRuntimeData, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null">
<TreeData xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SpotName>xxxxx</SpotName>
<PreciousName>xxxxxx</PreciousName>
</TreeData>
<TreeData1 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<FxOptionName>yyyyyy</FxOptionName>
</TreeData1>
</xmlSerializerSection>
</DealTreeSettings>
Now I cant create mulitple xmlSerializerSection so how do i read all
the nodes ? ie read both TreeData and TreeData1.
i can read the first lot of nodes by name nicely from the class and
populate the treeview eg <SpotName>,<PreciousName>
problem is i dont want to add all the nodes under the TreeData since i
dont want additional logic when building the view.
Cheers nitesh