Hi,
Given the following XML snippethow do I loop through all of the child controls and delete them one by one? I tried usingCode:<Parent> <Child LIID="1" /> <Child LIID="2" /> <Child LIID="3" /> <Child LIID="4" /> <Child LIID="5" /> </Parent>but doing a "RemoveChild" while looping causes the For Each loop to exit on the very first child node. Any ideas?Code:For Each ndeChild As XmlNode in ndeParent.ChildNodes ndeParent.RemoveChild(ndeChild) Next
Thanks!




Reply With Quote