here's my problem
I retrieve and display the xml data like this
XDocument doc = XDocument.Load("TextFile1.xml");
List<string> a = new List<string>();
var kitap = doc.Descendants("Author");
foreach (var item in kitap)
{
a.Add(item.Value);
}
list1.ItemsSource = a;
I have two different xml files such as;
<Books>
<Book>
<Author>Author1</Author>
</Book>
<Book>
<Author>Author2</Author>
</Book>
</Books>
And the second one is like this;
<Books>
<Book>
<BookName>ExampleBook1</BookName>
<Author>Author</Author>
</Book>
<Book>
<BookName>ExampleBook2</BookName>
<Author>Author2</Author>
</Book>
</Books>
Now What I need to do is I need to get the row according to the first xml file, If "Author" is selected in the first XML ,I need to retrieve and display this row;
<Book>
<BookName>ExampleBook1</BookName>
<Author>Author</Author>
</Book>
What's the best way to do this in c# ?