I’m loading data into a DataSet from an XML file using the ReadXml method. This results in two tables with the same name. One of the tables has a namespace and the other doesn’t. I’m trying to reference the table with the namespace. Can anyone tell me how to do this?
Dim reader As XmlTextReader = New XmlTextReader(strURL) Dim city as string = '' Dim ds As DataSet = New DataSet() ds.Namespace = 'HomeAddress' ds.ReadXml(reader) city = ds.Tables('Address').Rows(0).Item(2).ToString()
I found the answer. You can pass in the namespace as the second parameter. I guess I didn’t notice this particular overload in Intellisense.