473,408 Members | 2,813 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,408 software developers and data experts.

Help with ReadXML

I currently have this code:

string filePath = "c:\\results.xml"
PlayersDataSet.ReadXml(filePath);

and it works fine, it reads the local xml file into a dataset...
If I change the filePath to a readable source on a remote server:

string filePath = http://finao.net/results.xml;
PlayersDataSet.ReadXml(filePath);

I get an exception:

The 'meta' start tag on line 6 does not match the end tag of 'HEAD'.
Line 7, position 3.

Any suggestions? Im stumped.

Ryan

Jun 17 '06 #1
1 1477
Dear Ryan,

The URL you are accessing, even though has an XML extension it really loads
a HTML page which loads the XML in an internal frame. As this HTML is not a
well formed XML (not considering it doesn't have the data you want!), you
are getting this error. You will see this, if you have a look at the source
of the XML file. Hence if you use the direct XML path (As per the source)
http://70.34.72.73:8089/results.xml, it should load fine.

Hope this helps.

Y. Sivaram

"Ryan Ramsey" <ry********@yahoo.com> wrote in message
news:lP******************************@adelphia.com ...
I currently have this code:

string filePath = "c:\\results.xml"
PlayersDataSet.ReadXml(filePath);

and it works fine, it reads the local xml file into a dataset...
If I change the filePath to a readable source on a remote server:

string filePath = http://finao.net/results.xml;
PlayersDataSet.ReadXml(filePath);

I get an exception:

The 'meta' start tag on line 6 does not match the end tag of 'HEAD'.
Line 7, position 3.

Any suggestions? Im stumped.

Ryan

Jun 17 '06 #2

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

Similar topics

1
by: Jeffrey A. Voigt | last post by:
I'm having trouble loading some xml data into a dataset via the ReadXML call. I'm loading into the dataset an xml schema prior to the ReadXML call. I see that there IS in fact, 3 records that...
4
by: Shapper | last post by:
Hello, I have a XML file that includes the node <item>: .... <title>...</title> <url>...</url> <item> <title>title 01</title> <description>description 01</description> </item>
7
by: Juan Romero | last post by:
Hey guys, please HELP I am going nuts with the datagrid control. I cannot get the damn control to refresh. I am using soap to get information from a web service. I have an XML writer output...
5
by: manmit.walia | last post by:
Hello All, I am stuck on a conversion problem. I am trying to convert my application which is written in VB.NET to C# because the project I am working on currently is being written in C#. I tried...
2
by: C Glenn | last post by:
I'm attempting to use ReadXml. It's working in that I end up with some data in the DataSet. But I'm not able to deal with it effectively after that. The XML file is properly formatted in that it...
0
by: Guy | last post by:
Hi, I have a serialized object which looks like: <List> <ItemName="a"> <ItemName="b"> <Node Name="c" /> </Item> </Item>
3
by: Bill Nguyen | last post by:
I ran into errors trying to open an xml file in IE with content as below. I need to access this file using ReadXML in .NET but do not where to start. Can you please tell me what XML files I may...
1
by: ray well | last post by:
i saved the state of a data set and table via MyDs.WriteXmlSchema("MyDs.xsd") MyDs.WriteXml("MyDs.xml") i was able to read them back in and display the info in the database by ...
1
by: BlouHond | last post by:
Hi, I'm using VB.net 2005. My dataset is called DsDetails1 My XML file is called details.xml When I use ReadXML, is there any way that I can set the path of this XML file to be read to be the...
1
by: Rainer Queck | last post by:
Hello NG, I am using a typed DataSet, created with VS dataset designer. I have the problem , that a table in the dataset refuses to read a xml file. The strange thing is that if I create a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.