I\'m having difficulty trying to remove a div with a particular ID, and its children using the HTML Agility pack. I am sure I\'m just missing a config option, but its Friday a
bodyNode.RemoveChild(functionBarNode,false);
But functionBarNode is not a child of bodyNode.
How about functionBarNode.ParentNode.RemoveChild(functionBarNode, false)? (And forget the bit about finding bodyNode.)
functionBarNode.ParentNode.RemoveChild(functionBarNode, false)