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

link in XML when displayed in DataSet (XmlReadMode.Auto)

Hello,

I am trying to read an xml file into a web page via asp.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 12 '05 #1
0 1496

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

Similar topics

0
by: Kathryn | last post by:
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:...
3
by: John Francisco Williams | last post by:
Hi, I searched through this newsgroup looking for an answer for this, but didn't find any (it probably is here. Just didn't find it). I am trying to retrieve information from two related tables,...
0
by: Kathryn | last post by:
Hello, I am trying to read an xml file into a web page via asp.net. I am current using an rss format and reading it directly into a DataSet with the following command:...
0
by: matt.schaunaman | last post by:
I am trying to merge multiple xml files into one dataset, but I keep getting "'column' argument cannot be null. Parameter name: column " any help would be appreciated! I am getting the error on...
3
by: Derrick | last post by:
I am reading in xml files that equate to sql tables, via XmlDataDocument, and then operating on the DataSet. With the most simple app that just loads the xml doc, I see the memory footprint of the...
0
by: Kathryn | last post by:
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:...
5
by: Wayne Wengert | last post by:
I am using VB ASP.NET. In my page I convert an uploaded XML file to a dataset as follows: Dim ds1 As DataSet = New DataSet ds1.ReadXml(strPathName, XmlReadMode.Auto) Now I want to append...
0
by: Leeor Chernov | last post by:
Hi , I am using the method: DSSap.ReadXml( XmlPath,XmlReadMode.InferSchema ); And as I expected I get an error when the xml does not matching my DataSet that contains already a schema , The...
0
by: c.w.browne | last post by:
Hi, Ive had a bit of a look around for other people with this problem and cant find anything that solves it in my case, so I'm afraid im going to have to bother you all with a post of my own. ...
7
by: Tony Girgenti | last post by:
Hello. Developing a web site in VS2005, SP1, VB, .NET 2.0, ASP.NET 2.0 on XP Pro, SP2. I eventually want to use a gridview table to view xml data, but right now i can't seem to get my xml...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
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...

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.