I want to write a method to remove given index from the nodelist. is there any way to do it?
If i try this below code it removes the xml, but still the empty node exists, the count of the xmlnodelist is same as before remove.
public static void removeItem(XmlNodeList nodes, int index)
{
nodes.Item(i).RemoveAll();
}
Can anyone help me how to remove the particular item by index?