473,545 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataRelations

Les
I have a problem getting Dataset.WriteXm l() to create a nested xml
realtionship. All I get is an inline xsd (all nodes are children of
the root). Documentation says to use Dataset.Relatio ns.Nested="true ";
but this doesn't produce the nested xml as it should. I have even
used a unit test, "MessageBox.Sho w(Dataset.Relat ions.Nested.ToS tring());".
I get the "True" as an answer. So, the ReationsCollect ion has a
relation and it is nested. Why then doesn't it work according to the
documentation. I have created this example using the Visual Designer
and coded it programmaticall y and both have the same results.
Thanks
Nov 11 '05 #1
1 3469
Hi Les,

Nested DataRelation will put the child nodes under parent when using
DataSet.WriteXm l() method. Have you tried the sample on MSDN about nested
data relation? Please take a look at the following address:

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

If it still doesn't work, would you post some of your codes here, so that I
can deliver my assistance more quickly?

If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| From: Le*******@jda.c om (Les)
| Newsgroups: microsoft.publi c.dotnet.xml
| Subject: DataRelations
| Date: 17 Oct 2003 12:17:10 -0700
| Organization: http://groups.google.com
| Lines: 10
| Message-ID: <31************ **************@ posting.google. com>
| NNTP-Posting-Host: 12.10.216.130
| Content-Type: text/plain; charset=ISO-8859-1
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google. com 1066418231 29045 127.0.0.1 (17 Oct 2003
19:17:11 GMT)
| X-Complaints-To: gr**********@go ogle.com
| NNTP-Posting-Date: Fri, 17 Oct 2003 19:17:11 +0000 (UTC)
| Path:
cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.s yr.edu!news.max well.syr.edu!po stnews1.google. com!no
t-for-mail
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.xml:16 698
| X-Tomcat-NG: microsoft.publi c.dotnet.xml
|
| I have a problem getting Dataset.WriteXm l() to create a nested xml
| realtionship. All I get is an inline xsd (all nodes are children of
| the root). Documentation says to use Dataset.Relatio ns.Nested="true ";
| but this doesn't produce the nested xml as it should. I have even
| used a unit test, "MessageBox.Sho w(Dataset.Relat ions.Nested.ToS tring());".
| I get the "True" as an answer. So, the ReationsCollect ion has a
| relation and it is nested. Why then doesn't it work according to the
| documentation. I have created this example using the Visual Designer
| and coded it programmaticall y and both have the same results.
| Thanks
|

Nov 11 '05 #2

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

Similar topics

4
5571
by: niv | last post by:
Hi, I am unsure on how to retrieve data from tables 2 tables that are related through a relationship table.. TableOne -------- TableOneID TableOneDesc
1
1159
by: Pranav Shah | last post by:
I am trying to use a DataRelation between two DataTables in a DataSet. What I am not sure about is how to establish the relationship when it is based on more than one column. Any help will be great. --Thanks *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
3
3431
by: Kevin | last post by:
Hi All this is going to be a lengthy questions do please bear with me.... I have a database that has three tables - Employees, ShiftHeader,ShiftDetails Now the employees table holds the ShiftID for the ShiftHeader table, to determine which shif t the employee
0
1172
by: Randy | last post by:
I have two DataTables in a DataSet. I create a DataRelation between two like-typed columns in the first and second tables, and it works exactly as expected. Unfortunately, the default behavior seems to be that the link (or links if there's multiple DataRelations) are all under the left-most column. Is there any way to put the link under the...
1
1895
by: Fleckman | last post by:
I have a DataSet with 14 DataTables and 18 Relationships that were defined within Visual Studio .NET 2003. Everything looks OK in the visual development environment, i.e. when I preview the DataSet all the relationship appear correctly defined. However, when I create a new DataSet of this type within my project I only see two of the...
2
1679
by: Phil Townsend | last post by:
I have seen a lot on ADO.NET data relations, but my jury is still out on the benefits of coding a data relation vs. using a join in a stored procedure. I know there is more overhead when using the join, since there is more data in the result set, but how big of an issue is this, especially when working with smaller databases? *** Sent...
0
1438
by: George Durzi | last post by:
I have a DataSet with 3 tables, and two DataRelations dsSubs.Tables.TableName = "Subscriptions" dsSubs.Tables.TableName = "AccountManagers" dsSubs.Relations.Add "AccountManagers_Subscriptions", dsSubs.Tables.Columns dsSubs.Tables.Columns) dsSubs.Tables.TableName = "NewsFeeds"
3
4293
by: Carlos Albert | last post by:
Hello everybody, I'm using some gridviews with datalists inside template columns. Now, for each datalist I'm calling a method returning a dataset (depending from a column from the gridview). But I was wondering: is there a way to bring just one DataSet with two related tables and apply the "child" table to the datalist? I didn't find...
0
973
by: Vajrala Narendra | last post by:
hi all, am working in asp.net i am using two data entry screens for parent and child tables. i heard that using datarelations we can achieve this using single screen. is it ppossible? please suggest how? Thanks inAdvance.
0
7479
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7669
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. ...
0
7773
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...
0
5987
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5343
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3468
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...
0
3450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1028
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
722
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...

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.