Thanks Jimmy,
I am trying to convert the above to VB, but I must be missing something:
Dim Nav As System.Xml.XPath.XPathNavigator
Dim DNode As System.Xml.XPath.XPathNavigator
Nav = Me.DataSources("sections").CreateNavigator
* Do While (Nav = Node1.SelectSingleNode("/sections/section", Me.NamespaceManager)) <> DBNull.Value
Nav.DeleteSelf()
Loop
I get an error on the * line telling me: Error 4 Operator '=' is not defined for types 'System.Xml.XPath.XPathNavigator' and 'System.Xml.XmlNode'.
Any thoughts? :)