read xml with dataset

  • Thread starter Thread starter Tee
  • Start date Start date
T

Tee

Hi,

I'm using a dataset to read an xml file.

But I wonder can I directly get the xml data from the dataset ? or I
actually need to use datarow?

thanks.
 
Tee

It is for me not clear what you mean,

However this is a representation from the first item in the first row in the
first table of a dataset

ds.tables(0).rows(0).item(0)

On every part from the dataset you can get its reference.
So in the case of
dim dr as datarow = ds.tables(0).rows(0)
you can say than
dim a as string = dr(0).tostring
or
dim a as string = ds.tables(0).rows(0)(0).tostring
What gives exactly the same result.

I hope this helps?

Cor
 
you can write it out again using the xmlWrite method or you can access it
via DataTable/Rows etc

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top