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
Kevin Yu [MSFT] - 20 Oct 2003 06:55 GMT
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/default.asp?url=/library/en-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

Signature
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
--------------------
| From: Les.Brown@jda.com (Les)
| Newsgroups: microsoft.public.dotnet.xml
[quoted text clipped - 7 lines]
| 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: groups-abuse@google.com
| NNTP-Posting-Date: Fri, 17 Oct 2003 19:17:11 +0000 (UTC)
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnews1.google.com!no
t-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.xml:16698
| X-Tomcat-NG: microsoft.public.dotnet.xml
[quoted text clipped - 9 lines]
| and coded it programmatically and both have the same results.
| Thanks
Kevin Yu [MSFT] - 23 Oct 2003 02:56 GMT
Hi Les,
I'd like to know if this issue has been resolved yet. If no, is there
anything I can help? I'm still monitoring on it.
Kevin Yu

Signature
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
--------------------
| From: Les.Brown@jda.com (Les)
| Newsgroups: microsoft.public.dotnet.xml
[quoted text clipped - 7 lines]
| 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: groups-abuse@google.com
| NNTP-Posting-Date: Fri, 17 Oct 2003 19:17:11 +0000 (UTC)
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnews1.google.com!no
t-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.xml:16698
| X-Tomcat-NG: microsoft.public.dotnet.xml
[quoted text clipped - 9 lines]
| and coded it programmatically and both have the same results.
| Thanks