i have a xmldocument with huge collection of nodes. xmldocument is loaded from string variable. i'm trying to get a nodes collection using xpath. my problem is when i run the app without debug the collection has few nodes( around 5 or 6) but if i debug and press F11 at the getting nodes collection line, i get different number of nodes based on the time i pause at the point. i have no clue on what's going on. is it because of the memory handling? or am i doing something wrong. (note: i'm removing the nodes from the DOM which are in the collection inside the foreach loop)
any idea?