473,508 Members | 2,400 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML generated from a Dataset with a Relationship established

Me
Hi,

I have a dataset with two tables (Order, Item) and a
relationship setup to join the tables. I have the nested
property of the DataRelation class set to true. When I
use the GetXML method the XML looks like this:

<Orders>
<Order>
<OrderID>1</OrderID>
<Item>
<ItemID>1</ItemID>
</Item>
<Item>
<ItemID>2</ItemID>
</Item>
</Order>
</Orders>

But the XML I want it to produce would lokk like this:

<Orders>
<Order>
<OrderID>1</OrderID>
<Items>
<Item>
<ItemID>1</ItemID>
</Item>
<Item>
<ItemID>2</ItemID>
</Item>
</Items>
</Order>
</Orders>

Is there way to force the Dataset to give me the XML with
the <Items> and </Items> tags using the GetXML method? If
not, how would I go about generating the XML the way I
want it? I don't have to traverse the Dataset and
generate it myself do I?
..
Nov 11 '05 #1
0 1177

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

Similar topics

4
1542
by: H Cohen | last post by:
Hi, I have a corporate database with about 60 different tables that spans manufacturing, accounting, marketing, etc. It is possible, but unwieldy, to establish a relationship for each table...
7
354
by: Richard Myers | last post by:
Hello. I am getting an InvalidCastException which has revealed yet more of my ignorance. I cant believe i dont already know this and haven't encountered it before until now. I am consuming a...
2
9942
by: Wayne Wengert | last post by:
I am attempting to generate an XML file based on the contents of a dataset which contains a parent-child relationship but when I create the output file all I get is the XML header as shown here: ...
2
3408
by: Larry R Harrison Jr | last post by:
I have an Access 97 database with 2 tables that have a one-many relationship. I have a SQL statement in the "one" table which I want to execute and insert 7 records into the "many" table, and I...
0
1276
by: Joey Lee | last post by:
Hi, I have created a dataset schema(*.xsd) which contain two element "InvoiceHeader" and "InvoiceDetail". I set the primary key of both the element. for example "InvoiceHeader" -> id and...
0
947
by: Danny Tuppeny | last post by:
/* * Not sure which group has the best audience for this question, * but followups are set to microsoft.public.dotnet.framework */ Hi all, In Visual Web Developer Express, I've created a new...
6
463
by: Joseph | last post by:
Is it possible to create a dataset in one form of a Win app and use that same dataset in a second form of the same app? If so, how? Thanks.
1
1236
by: MRW | last post by:
Hello! I'm trying to create a dataset with a relationship inside a class, so it can be used on multiple pages. If I create the dataset in the class and define the relationship in the page, it...
6
4047
by: NicoleCartrette | last post by:
Going back to school is easier said than done.. This was posted to an older thread earlier but I don't think it got any attention. Your help is appreciated Professor requires we create a...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5045
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.