PC Review


Reply
Thread Tools Rate Thread

Creating XML file with many-to-many relations with a dataset

 
 
=?Utf-8?B?aGlsZWxfZA==?=
Guest
Posts: n/a
 
      8th Sep 2004
I need to retrieve data from sql sever db that contains link tables which
provide
many-to-many functionality. Than I need to convert this data to xml file
with nesting parent and child relations. The XML need not contain the link
tables only their function (relations).

Should I use the DataSet object and the DataSet.GetXml() method to this
purpose?
I would greatly appreciate an example preferably in C#.
(I have already seen examples with one-to-many, so please don't refer me to
such).

Thank you in advance.
Hilel.
 
Reply With Quote
 
 
 
 
Shock
Guest
Posts: n/a
 
      12th Sep 2004
hilel_d wrote:

> I need to retrieve data from sql sever db that contains link tables which
> provide
> many-to-many functionality. Than I need to convert this data to xml file
> with nesting parent and child relations. The XML need not contain the link
> tables only their function (relations).
>
> Should I use the DataSet object and the DataSet.GetXml() method to this
> purpose?
> I would greatly appreciate an example preferably in C#.
> (I have already seen examples with one-to-many, so please don't refer me to
> such).
>
> Thank you in advance.
> Hilel.


Hilel,

I am not an expert working with xml, but I would think you could do some
of this easier by using xsd. I don't know much about either, just
thought I might point you in a slightly other direction.

Shock
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dataset relations Cdude Microsoft C# .NET 6 30th May 2008 04:16 PM
Modify an XML File with a DataSet and Child Relations Patrick Microsoft C# .NET 0 4th May 2007 03:02 PM
Retrieve info from Dataset with Relations (Dataset,SQL or XML) Joe Microsoft C# .NET 2 4th Apr 2006 01:58 PM
Dataset, xsd file, datagrid, expressions and parent/child relations?! =?Utf-8?B?c2Np?= Microsoft Dot NET Framework 0 7th Apr 2004 08:06 AM
Dataset Relations rhill Microsoft ADO .NET 0 10th Jul 2003 05:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:54 PM.