[C#] Please Help With Reading Tricky Xml
Micfosoft(TM)'s modified Books.xml:
The price attribute of the last book item was modified by me, now it appears two times,
once as attribute of book and second time as a separate item inside the book item.
<!-- This file represents a fragment of a book store inventory database -->
<title>The Autobiography of Benjamin Franklin</title>
<title>The Confidence Man</title>
<book genre="philosophy" price="best">
public partial class Books : Form
XmlDataDocument myXmlDataDocument = new XmlDataDocument();
DataSet ds = new DataSet("Books DataSet");
dataGridView.DataSource = ds;
dataGridView.DataMember = "book";
The runtime error is of course:
"Column name 'price' defined for different mapping types."
(screenshot of error message attached)
Please help me find out how to define/refer in the code to these prices,
to be possible to read the xml!
I've been searching thorough google, but the most people were able to come up is "Change the xml",
the problem is that the actual xml that I'm working with, has been written in the same unfortunate fashion,
and can not be changed.