Hi,
I'm using ReadXml() in combination with a XmlDataDocument and have an incoming XML tag like this:
<phonenumber type="1">somephonenumber</phonenumber>
So, I have this:
XmlDataDocument xmlDoc = new XmlDataDocument();
int i = 0;
foreach (DataRow row in doc.DataSet.Tables[0].Rows)
{
...
}
It'd be cool to be able to use something like:
phonenumber = row["phonenumber"].ToString();
type = row["type"].ToString();
But apparently it's not that simple.
I made a quick-fix solution using substring, but I'm sure there must be a more elegant way to deal with this, any ideas?
Thx
I'm using ReadXml() in combination with a XmlDataDocument and have an incoming XML tag like this:
<phonenumber type="1">somephonenumber</phonenumber>
So, I have this:
XmlDataDocument xmlDoc = new XmlDataDocument();
int i = 0;
foreach (DataRow row in doc.DataSet.Tables[0].Rows)
{
...
}
It'd be cool to be able to use something like:
phonenumber = row["phonenumber"].ToString();
type = row["type"].ToString();
But apparently it's not that simple.
I made a quick-fix solution using substring, but I'm sure there must be a more elegant way to deal with this, any ideas?
Thx