?
=?iso-8859-1?q?Christian_R=FChl?=
heyho, guys! here's another question for you now:
i built an iterator to get all the nodes with a certain attribute in an
xml dom. it all looks like this (i'm using .NET framework 1.1)
string xpath;
// iterate over all xmlnodes with attribute "status='checked'"
XPathDocument xpathDoc = new XPathDocument(m_configFile);
XPathNavigator xpathNav = xpathDoc.CreateNavigator();
XPathNodeIterator nodeIter = xpathNav.Select(@"/*[@status='checked']");
while(nodeIter.MoveNext())
{
xpath = nodeIter.CurrentPosition.ToString();
// here i want to address an treeview node with the xpath to
set its
checkbox
}
so what i want to know is: how can i address a treeview node by it's
path? for if i go like
treeView1.SelectedNode.blabla it randomly choses a node in treeView
control.
i built an iterator to get all the nodes with a certain attribute in an
xml dom. it all looks like this (i'm using .NET framework 1.1)
string xpath;
// iterate over all xmlnodes with attribute "status='checked'"
XPathDocument xpathDoc = new XPathDocument(m_configFile);
XPathNavigator xpathNav = xpathDoc.CreateNavigator();
XPathNodeIterator nodeIter = xpathNav.Select(@"/*[@status='checked']");
while(nodeIter.MoveNext())
{
xpath = nodeIter.CurrentPosition.ToString();
// here i want to address an treeview node with the xpath to
set its
checkbox
}
so what i want to know is: how can i address a treeview node by it's
path? for if i go like
treeView1.SelectedNode.blabla it randomly choses a node in treeView
control.