473,394 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Can't fetch the xml: roots element are missing

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

Jan 15 '06 #1
1 986
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
<be********@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
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&CD
LGTRN=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

Jan 16 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Info 3000 | last post by:
Hello, I'm beginner in XML. I have just a little question : I understand that I can write : <Book> <Title> A nice day </Title> <Author> James Nicepen </Author> </Book>
7
by: Michael Williams | last post by:
Hi All, I'm looking for a quality Python XML implementation. All of the DOM and SAX implementations I've come across so far are rather convoluted. Are there any quality implementations that...
5
by: prasannadhoj | last post by:
Dear all, I am newbie in XML world , and i've an issue, i want to use 3 dtd files in my xml. All these 3 dtd have their own root element. My idea was to keep one file Internal , 2nd one...
2
by: =?iso-8859-1?q?KLEIN_St=E9phane?= | last post by:
Hi, I've a xml svg file and I would like to update it with Python. First, I would like to fetch one dom node with getElementByID. I've one issue about this method. This is my example : ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.