I have an XML document that contains images that I use to display on the page. I need to be able to update the images in the XML document. I have a control panel on my page that has the list of images that should be in the XML. How do I delete the images and repopulate the XML document? The code below allows me to get the images so now I just need to know how to delete them and replace them with the new list.
Dim xmlDoc As New XmlDocument
Dim nodeList As XmlNodeList
Dim root As XmlNode = xmlDoc.DocumentElement
Dim img As XmlNode
nodeList = root.SelectNodes("descendant::image")