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
|