Answer the question
In order to leave comments, you need to log in
Why doesn't it remove the xml element (LINQ to XML)?
What am I doing wrong?
For some reason it does not remove the element from XML
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<links>
<link>http://24tv.ua/rss/all.xml</link>
<link>http://www.pravda.com.ua/rss/view_mainnews/</link>
</links>
myOwner.xmlDoc.Descendants("links")
.Elements("link")
.Where(x => x.Value == listBoxLinks.SelectedItem)
.Remove();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question