PC Review


Reply
Thread Tools Rate Thread

Dataset Issue - c# and .net 2.0

 
 
th3dude
Guest
Posts: n/a
 
      3rd Jan 2007
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!

 
Reply With Quote
 
 
 
 
gerry
Guest
Posts: n/a
 
      3rd Jan 2007
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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!
>



 
Reply With Quote
 
th3dude
Guest
Posts: n/a
 
      4th Jan 2007
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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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!
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dataset Issue .NET 2.0 microsoft.news Microsoft Dot NET Framework 1 27th Jul 2005 07:24 AM
Dataset Issue .NET 2.0 microsoft.news Microsoft ASP .NET 1 27th Jul 2005 07:04 AM
Dataset Issue .NET 2.0 microsoft.news Microsoft Dot NET 1 27th Jul 2005 06:32 AM
DataSet Xml Issue =?Utf-8?B?U3Vubnk=?= Microsoft C# .NET 1 28th Oct 2004 04:23 PM
What now?...Dataset issue Phil Lamey Microsoft Dot NET 1 8th Jul 2003 10:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:59 AM.