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

DataRelations

Les
I have a problem getting Dataset.WriteXml() 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.Relations.Nested="true";
but this doesn't produce the nested xml as it should. I have even
used a unit test, "MessageBox.Show(Dataset.Relations.Nested.ToString ());".
I get the "True" as an answer. So, the ReationsCollection 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 programmatically and both have the same results.
Thanks
Nov 11 '05 #1
1 3460
Hi Les,

Nested DataRelation will put the child nodes under parent when using
DataSet.WriteXml() 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/cpconnesteddatarelations.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.com (Les)
| Newsgroups: microsoft.public.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**********@google.com
| NNTP-Posting-Date: Fri, 17 Oct 2003 19:17:11 +0000 (UTC)
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnew s1.google.com!no
t-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.xml:16698
| X-Tomcat-NG: microsoft.public.dotnet.xml
|
| I have a problem getting Dataset.WriteXml() 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.Relations.Nested="true";
| but this doesn't produce the nested xml as it should. I have even
| used a unit test, "MessageBox.Show(Dataset.Relations.Nested.ToString ());".
| I get the "True" as an answer. So, the ReationsCollection 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 programmatically 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
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
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...
3
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...
0
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...
1
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...
2
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...
0
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",...
3
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). ...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.