473,388 Members | 1,499 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,388 software developers and data experts.

Reading XML into datagrid with xmlreadmode.auto - link?

Hello,

I am trying to read an xml file into a web page via vb.net. I am
current using an rss format and reading it directly into a DataSet
with the following command:
ds.ReadXml("xmlfilepath\xmlfile.xml", XmlReadMode.Auto)

Here is an example of an element in the xml file:
<item>
<title>Newark Valley Fathers Day Challenge</title>
<description>Participating teams: U10, U11</description>
<pubdate>5/25/04</pubdate>
<dateofevent>June 19 &amp; 20</dateofevent>
</item>

That works great. The problem is that the user now wants to embed
links in the description tag so pdf files can be linked to the U10 and
U11 text. When I try to do this I get the following error:

"The same table (description) cannot be the child table in two nested
relations. "

An example of the html to display the xml in the dataset is as
follows:

<td align="left" valign="top" width="350">
<asp:label Font-Size="Smaller" ForeColor="#00066" Font-Bold="True"
Font-Underline="True" ID="Label1" runat="server">Event:</asp:label>
<asp:label Font-Size="Smaller" ForeColor=#000066 Font-Bold="True"
ID=Label6 runat="server" Text='<%#
DataBinder.Eval(Container,"DataItem.title") %>'>
</asp:label></td>

Any ideas how I can get this to work? Thanks in advance.
Nov 18 '05 #1
0 1258

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

Similar topics

1
by: Stephen | last post by:
I have the following for a datagrid that inserts a row into an xml file. It works great, but inserts the data to a new top-level node. I don't know how to specifiy an existing node for the...
2
by: andrewcw | last post by:
I am considering using the DataGrid to show my data. I will take the class data and serialize it / xml transform it or simply load it into a new XML document. The new XML document is essentially a...
1
by: Hugh Creswell | last post by:
Hi there, I wonder if anyone can give me some help here? I am a newbie at csharp, and am translating a C++ app that I wrote into csharp. What I have is a and XmlDocument in memory, referenced by a...
4
by: Jussi | last post by:
I load a XML document in the DataGrid: private System.Windows.Forms.DataGrid myDataGrid = new DataGrid(); private DataSet m_myDataSet = new DataSet(); ...
2
by: Thejus | last post by:
Hi, When I read from a XML Document and assign - DataSet.ReadXml(@"C:\Abc.Xml",XmlReadMode.Auto); DataGrid.DataSource = DataSet; I get the DataGrid showing the Data table name, but the...
2
by: Scott | last post by:
Hi all. A few days ago i ask this question and got a good quick response. I tried out what they said and it worked. However I have now come to try the same thing in another program and it...
3
by: McNutt Consulting | last post by:
I'm trying to implement a datagrid with dynamically created columns. The data is coming out of a very simple XML file, and it's bound through a dataview. The datagrid is just a shell definition...
1
by: sunc82 | last post by:
Have a simple question here XD hope can get some answer =) i used dataset to read data from XML dim ds as new dataset 'DataGrid_DB is my DataGrid use in this form...
0
by: webaccess | last post by:
Hi Friends ..!! I want to use datagrid/dataview control to data in tablular format,also I want to add paging and format the data of table column. Problem is data is coming from API Dom in as...
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?
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
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...

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.