Dataset Issue - c# and .net 2.0

  • Thread starter Thread starter th3dude
  • Start date Start date
T

th3dude

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!
 
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
 
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top