PC Review


Reply
Thread Tools Rate Thread

dataset xml related tables. c#

 
 
suzy
Guest
Posts: n/a
 
      15th Jul 2003
this sounds like such a common thing to do but i cant find the specific
answer on the net.

i have 2 tables, say orders and customers.

i want to use the dataset to return the orders/customers in xml in the
following format:

<Order>
<OrderId>1</OrderId>
<Cutstomer>
<CustomerId>12<CustomerId>
<CustomerName>Bob Murray<CustomerName>
</Customer>
<OrderDetail>some goods</OrderDetail>
</Order>

how can i do this?

i have using 2 separate selectcommands on each table, then creating a
relationship between the 2 tables, but for some reason the dataset.getxml
method is returning ALL customers, even if they have no orders.

thanks in advance!


 
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
Re: Fill Related Tables in DataSet William Ryan eMVP Microsoft Dot NET 0 30th Jul 2004 09:19 PM
HOWTO: Table, related tables, and only related data in a dataset? McGurk Microsoft ADO .NET 1 29th Apr 2004 06:17 AM
Updating Related Tables from Dataset Shiv Microsoft ASP .NET 0 17th Oct 2003 02:37 PM
Sorting a DataSet with related tables Paul Turley Microsoft ADO .NET 0 30th Aug 2003 05:15 PM
Sorting a DataSet with related tables Paul Turley Microsoft ASP .NET 0 30th Aug 2003 05:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:14 PM.