473,322 Members | 1,352 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,322 software developers and data experts.

XML Structure serialized in Disk for a dataset

I have used the wizard of VisualStudio to generate a DataSet (typed
dataSet).
I need to have the structure serialized in XML in a nested way and not in a
table representation

e.g:
I have 3 tables: Companies- Departments- Employees
A company can have n Departments and a Department can have m employees

By default the DataSet is serialized this way:
<Companies>
....
</Companies>
<Companies>
....
</Companies>
<Companies>
....
</Companies>
<Departments>
....
</Departments>
<Departments>
....
</Departments>
<Employees>
....
</Employees>
<Employees>
....
</Employees>

I need it to be serialized this way (nested):
<Companies>
<Departments>
<Employees>
</Employees>
<Employees>
</Employees>
</Departments>
<Departments>
<Employees>
</Employees>
<Employees>
</Employees>
</Departments>
</Companies>
This will also imply that the "foreign keys" WILL NOT be stored in the XML
since they are not required in the target XML structure.

In the MSDN, I have seen that the DataRelation class provides a Nested
property that could be used. However, it does not remove the foreign keys.
Furthermore, modifying this property (on the relation) in the Graphic tool
provided by VS does not really work

Thaaaaaaaanks,
José
Nov 15 '05 #1
0 968

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: José Joye | last post by:
I have used the wizard of VisualStudio to generate a DataSet (typed dataSet). I need to have the structure serialized in XML in a nested way and not in a table representation e.g: I have 3...
3
by: Douglas Buchanan | last post by:
Newbie to donnet This is an example of a structure given in vs.net help ============================ Private Structure Employee Public GivenName As String ' This employee's given name....
2
by: kevininstructor | last post by:
I created two classes called "site" and "Sites" which use 'BinaryFormatter' to load and save class information to a disk file. In my test application all works fine but when implementing into...
5
by: Alfonso Morra | last post by:
Hi, I am writing a messaging library which will allow me to send a generic message structure with custom "payloads". In many cases, a message must store a non-linear data structure (i.e....
4
by: Bill | last post by:
I have a DataSet that is serialized to a local disk. One of the testers recently experienced a problem where data was saved and the Tablet PC she was testing later went offline. When she restarted...
3
by: ~~~ .NET Ed ~~~ | last post by:
Hello, I am having a problem trying to serialize this simple structure, I use it in a collection class that derives from CollectionBase but I noticed that at least for now the serialization...
5
by: Ben Kim | last post by:
Hello all, We are diving into VB.NET 2005 head first, coming from a language called Clarion. What are some of the drawbacks, if any, to serialized objects? Should we just use streaming data? ...
1
by: jman | last post by:
Is there anyway to write a VERY generic schema for the xml recieved when you serialize a DataSet? I know that the serialization includes a copy of the specific schema used by the dataset. I will...
3
by: gezerpunta | last post by:
hi I need to calculate the size of serialized data in db for my quota operation.How can I find it ?
3
by: =?Utf-8?B?TWFydGluIEtvY2g=?= | last post by:
1st I serialize a DataSet (contains 14 DataTables) into file, with BinaryFormatter. 2nd I change some columns in a DataTable. 3rd When I now Deserialize the DataSet from bin file got I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.