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

Dataset Issue - c# and .net 2.0

Hey there,

I am looping over a dataset created from the "readxml" method and there
seems to be a problem when it gets to a node that has just one child
for example:

This block yields the correct result and is translated as a proper
table with columns and rows:
<Bugs>
<Bug>56</Bug>
<Bug>51</Bug>
</Bugs>

This block just gets treated as a column and no rows.

<Bugs>
<Bug>56</Bug>
</Bugs>

Am i missing something or is this a bug in the framework?

Seems like they should get treated the same way.

Thanks for any insight!

Jan 3 '07 #1
2 992
that is the way it works - in the 1st case there is no cue to tell the
parser that bugs is a row collection as opposed to a single row
to get the required result use a .xsd schema

"th3dude" <gn*****@gmail.comwrote in message
news:11*********************@42g2000cwt.googlegrou ps.com...
Hey there,

I am looping over a dataset created from the "readxml" method and there
seems to be a problem when it gets to a node that has just one child
for example:

This block yields the correct result and is translated as a proper
table with columns and rows:
<Bugs>
<Bug>56</Bug>
<Bug>51</Bug>
</Bugs>

This block just gets treated as a column and no rows.

<Bugs>
<Bug>56</Bug>
</Bugs>

Am i missing something or is this a bug in the framework?

Seems like they should get treated the same way.

Thanks for any insight!

Jan 3 '07 #2
hey gerry,

thanks for clarifying this for me. i figured it had to be standard
functionality now i just need to adapt a .xsd.

cheers!

gerry wrote:
that is the way it works - in the 1st case there is no cue to tell the
parser that bugs is a row collection as opposed to a single row
to get the required result use a .xsd schema

"th3dude" <gn*****@gmail.comwrote in message
news:11*********************@42g2000cwt.googlegrou ps.com...
Hey there,

I am looping over a dataset created from the "readxml" method and there
seems to be a problem when it gets to a node that has just one child
for example:

This block yields the correct result and is translated as a proper
table with columns and rows:
<Bugs>
<Bug>56</Bug>
<Bug>51</Bug>
</Bugs>

This block just gets treated as a column and no rows.

<Bugs>
<Bug>56</Bug>
</Bugs>

Am i missing something or is this a bug in the framework?

Seems like they should get treated the same way.

Thanks for any insight!
Jan 4 '07 #3

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

Similar topics

2
by: Programatix | last post by:
Hi, I'm working on a project which includes WebServices and Windows Form application. The Windows Form application will call the WebServices to retrieve data from database. The data will be...
3
by: Diego TERCERO | last post by:
Hi... I'm working on a tool for editing text resources for a family of software product my company produces. These text resources are found in a SQL Server database, in a table called...
3
by: news.microsoft.com | last post by:
The question is, is a DataSet CLS compliant? Minimally implemented code, with an attribute in the assemblyinfo.cs compiles just fine (is it possibly the data INSIDE the dataset that could...
5
by: Sadun Sevingen | last post by:
hi i get dataset from'an webservice so i don't have an adaptor... dataset's structure is same as mine database table.... how can i update database table according to dataset...
16
by: Geoff Jones | last post by:
Hi Can anybody help me with the following, hopefully simple, question? I have a table which I've connected to a dataset. I wish to add a new column to the beginning of the table and to fill...
3
by: KillerJ | last post by:
I found a post about this exact issue: ...
3
by: David P. Donahue | last post by:
I'm re-writing an application in C# that was originally written in Delphi 7. The heart of the application is a DataSet displayed in a DataGrid. One of the main functions of the previous...
7
by: =?Utf-8?B?ZG91Zw==?= | last post by:
Have loaded balanced web servers that we do not allow to connect to our database. Content is created and pushed to these sites. I want to add a web service that may get multiple requests a second...
6
by: Simone | last post by:
Hello Here is my issue, I created a crystal report using a data set from my xsd. Then I created a page with the crystal report viewer control and bound the report to it. When I try to view...
8
by: Matt MacDonald | last post by:
Hi all, First of all, I am not trying to be the guy who comes in here shouting his mouth off at Microsoft. However, ever sinse I started using typed datasets in VS2005 I have been fighting with a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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:
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...
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
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...

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.