473,324 Members | 2,246 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,324 software developers and data experts.

DataSet.GetXml() nesting not working in 1.1 of framework

With framework 1.0 the dataset.getxml() method returned the children nested
within the parent. This doesn't seem to function this way with 1.1. Is
there something I'm missing?
Jul 19 '05 #1
3 4115
Hello Eric,

Thanks for your post. I'd like to make check whether you have set the
Nested property of a DataRelation to true which causes the child rows of
the relation to be nested within the parent column. You can set it like:

DataSet.Relations["MyRelation"].Nested = True;

Nested DataRelations
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconnesteddatarelations.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no rights.
Jul 19 '05 #2
This did the trick. Do you know how to set the nested to true from the xsd
definition? Is this possible?
"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:oj**************@cpmsftngxa06.phx.gbl...
Hello Eric,

Thanks for your post. I'd like to make check whether you have set the
Nested property of a DataRelation to true which causes the child rows of
the relation to be nested within the parent column. You can set it like:

DataSet.Relations["MyRelation"].Nested = True;

Nested DataRelations
http://msdn.microsoft.com/library/de...us/cpguide/htm l/cpconnesteddatarelations.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no rights.

Jul 19 '05 #3
Eric,

Define the relationship in the visual designer. Then highlight the
relationship and click the properties icon from the VS toolbar. Set the
'Nested' property to 'True'

Thanks

"Eric Decker" <er*********@denverwater.org> wrote in message
news:OR**************@tk2msftngp13.phx.gbl...
This did the trick. Do you know how to set the nested to true from the xsd definition? Is this possible?
"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:oj**************@cpmsftngxa06.phx.gbl...
Hello Eric,

Thanks for your post. I'd like to make check whether you have set the
Nested property of a DataRelation to true which causes the child rows of
the relation to be nested within the parent column. You can set it like:

DataSet.Relations["MyRelation"].Nested = True;

Nested DataRelations

http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconnesteddatarelations.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! ¨C www.microsoft.com/security
This posting is provided ¡°as is¡± with no warranties and confers no

rights.


Jul 19 '05 #4

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

Similar topics

0
by: lgdev | last post by:
I am using a Dataset with two tables (Customer, Order) and adding a DataRelation object with Nested property set to True. I do not have a schema defined for the dataset. Calling GetXml results in...
1
by: mr_dom_is | last post by:
Hi I have a little bit of trouble, probably missing the point now sure but: I have a dataset dim ds as new dataset("User") Which is populated with data from a database. When I use
2
by: Rajesh AVRS | last post by:
Hi guys I have a requirement where I needed to extract the DataSet contents as XML. After filling the dataset, I am calling GetXml() and is working fine. However, one of the column which I...
0
by: mr_dom_is | last post by:
Hi I have a little bit of trouble, probably missing the point not sure but: I have a dataset dim ds as new dataset("User") Which is populated with data from a database. When I use
5
by: moondaddy | last post by:
I'm caching a dataset in an asp.net session variable to hold a user's data. one data item I need to store is an image the user uploaded. My problem is that I don't know how to get the image into...
3
by: Eric Decker | last post by:
With framework 1.0 the dataset.getxml() method returned the children nested within the parent. This doesn't seem to function this way with 1.1. Is there something I'm missing?
5
by: needin4mation | last post by:
Hi, I have a webservice that just returns a count: public DataSet HelloWorld() { OdbcConnection conn = new OdbcConnection("DSN=xxx"); String sqlString = "select count(*) as employee from...
2
by: Ganesh Muthuvelu | last post by:
Hello, I have a schema that contains two "choice" elements, say "F1" and "F2" - meaning either F1 or F2 can be present but not both. I loaded this schema into a dataset, which created two columns...
3
by: Greg Collins [Microsoft MVP] | last post by:
I have a SQL2005 XML column I load into a DataSet. I then bind to a DataGrid. If I set an asp:Literal text value to the DataSet.GetXml() when I first load it into the DataSet, it displays...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.