How to get innerXML attribute values using xml reader
问题 I have a similar situation as the example here How to retrieve the "Price" and "Title" values of a book with given ISBN ? 回答1: Here's an example: class Program { static void Main() { var xml = @" <bookstore> <book genre='novel' ISBN='10-861003-324'> <title>The Handmaid's Tale</title> <price>19.95</price> </book> <book genre='novel' ISBN='1-861001-57-5'> <title>Pride And Prejudice</title> <price>24.95</price> </book> </bookstore> "; using (var reader = new StringReader(xml)) using (var