2 つの XPathNodeIterator を作成it
しchildIt
、コードで
このようなコードスニペット、
string selectSfStr = "Equipment/Main/Sub";
it = nav.Select(selectSfStr);
while (it.MoveNext())
{
; // do something here
if (it.Current.HasChildren)
{
XPathNodeIterator childIt;
string selectChildSfStr = "//item";
childIt = nav.Select(selectChildSfStr);
while (childIt.MoveNext())
{
; // do something here, but I found bug. The childIt can't move sychronized with the parent `it`.
;// How can I synchronize `childIt` here when I moved to next `it`.
}
}
}
のシーケンスでネストされたxmlファイルで、Equipment/Main/Sub/item
複数のsub
ノードとitem
各sub
ノードの複数があります