Get any specific value from this xml [modified]
-
EDIT: the XML isn't showing (download here: http://rapidshare.com/files/59995138/test.xml.html) I have this XML. I use the code below to open the XML and treat it as a DataSet and view it in a datagrid.
try { dataset = ReadXML(szPassword); dataGrid
-
EDIT: the XML isn't showing (download here: http://rapidshare.com/files/59995138/test.xml.html) I have this XML. I use the code below to open the XML and treat it as a DataSet and view it in a datagrid.
try { dataset = ReadXML(szPassword); dataGrid
-
I edited my post. I don't know how to make the xml visible in the code. there is a download link. Thanks for the reply.
Check the little box next to "Ignore HTML tags in this message..." before you hit "Post Message". You can go back and edit your message to turn this option on.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Check the little box next to "Ignore HTML tags in this message..." before you hit "Post Message". You can go back and edit your message to turn this option on.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007Found a solution
int nPrincipal_Id = 0; foreach (DataRow myRow in dataset.Tables["principal"].Rows) { if (myRow["name"].ToString()==textBox2.Text) { nPrincipal_Id = Convert.ToInt32(myRow["principal_Id"].ToString()); } } foreach (DataRow myRow in dataset.Tables["grant"].Rows) { if (myRow["principal_Id"].ToString() == nPrincipal_Id.ToString()) textBox1.Text += myRow["name"].ToString() + Environment.NewLine; }