Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / October 2003

Tip: Looking for answers? Try searching our database.

DataRelations

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Les - 17 Oct 2003 20:17 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.