Can't fetch the xml: roots element are missing

  • Thread starter Thread starter benclissen
  • Start date Start date
B

benclissen

Hi,


I want to do something simple read an xml and print out just 1 value.


Now everytime I do this I got this "Root elements are missing"
exception. I try it by using xmlreader, dataset or xpath; always the
same error.


I someone could help me out here and give me some possible causes (and
hopefully solutions)


Dim reader As New
StreamReader("http://ww5.ethias.be/auto55.go?IMSTRAN=WA2017&CDOPTRN=A2A55&CDLGTRN=N...")



While reader.Read
If reader.Name = "QUOTEID" Then
lblGARCI.Text = reader.Value
End If
End While


The problem is on the first line.


Thanks a bunch for your help,


Regards,


Ben
 
Ben the error says:-"Root elements are missing" exception
Try looking at your XML root document
Or try pasting what your XML looks like
Patrick
 

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