473,611 Members | 2,242 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

link in XML when displayed in DataSet (XmlReadMode.Au to)

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("xml filepath\xmlfil e.xml", XmlReadMode.Aut o)

Here is an example of an element in the xml file:
<item>
<title>Newark Valley Fathers Day Challenge</title>
<description>Pa rticipating teams: U10, U11</description>
<pubdate>5/25/04</pubdate>
<dateofevent>Ju ne 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="#000 66" Font-Bold="True"
Font-Underline="True " ID="Label1" runat="server"> Event:</asp:label>
<asp:label Font-Size="Smaller" ForeColor=#0000 66 Font-Bold="True"
ID=Label6 runat="server" Text='<%#
DataBinder.Eval (Container,"Dat aItem.title") %>'>
</asp:label></td>

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

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

Similar topics

0
1403
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: 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>
3
7318
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, using For XML Auto, and then use that in my C# app. I am only receiving the first row (and its child rows). This is what I do: Stored Procedure: Create Procedure dbo.uspTest04 As
0
387
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: 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>
0
1285
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 ds1.Merge(...) Dim ds1 as New DataSet Dim bFirstNewsFeed As Boolean = True
3
2162
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 app grow to roughly 5x the size of the xml document after the xml doc is read. Can anyone comment on this? Is this expected? Below are two samples, the first hits northwind, and creates a 19meg (roughly, on my machine) xml file. The second...
0
1269
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: 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>
5
2950
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 all the rows of ds1 to an existing table in an SQL Server database. I know I can do things like looping through the dataset and issuing Update SQL statements to do this but I suspect there is a better
0
1530
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 problem is that I get the following to-much detailed message: System.FormatException: Input string was not in a correct format. at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Int32.Parse(String s,...
0
1694
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. Essentially, I am trying to read in an xml schema and then an xml document into a dataset using ReadXmlSchema and then ReadXml. When i do this, i end up with a table in the dataset (which i assume is created when i read the schema), but no rows...
7
15112
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 data into a dataset so that i can use it. I have an XML file and can open it in IE. There is no XSD or XSL file to go with it.
0
8596
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8561
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8240
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8411
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4042
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4108
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2546
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1692
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.