HighTechTalks DotNet Forums  

Can you do this?

Dotnet XML microsoft.public.dotnet.xml


Discuss Can you do this? in the Dotnet XML forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Justin Lazanowski
 
Posts: n/a

Default Can you do this? - 06-21-2006 , 11:08 AM








I have a dataset that I want to write to XML

The dataset has two data tables with a parent child relationship 1:1

What I want to do is when I use myDataset.WriteXML(somefile);

Create a document that places the child within the parent node for example

<TestedBatch>
<BatchNumber 1234 />
<TestDate 1/1/2006 />
<TestDetails> <--- this is the child table
<test1 "5.0">
<test2 "3.3">
</TestDetails>
</TestedBatch>

I'm not getting this when I write to XML, I get all of the parent table
entries, and then all of the child table entries.

Any thoughts?

Thanks,
Jusitn



Reply With Quote
  #2  
Old   
RJ
 
Posts: n/a

Default Re: Can you do this? - 06-21-2006 , 03:59 PM






XSLT may be the "standard" technique for transforming the format of an XML
document into some other format. This would be a little different concept,
where you take the output of the DS.WriteXML and apply or transform it into
a second output as specified by another XSL document. Google on ".net xsl
transform" and you should get plenty of examples.

"Justin Lazanowski" <justin (AT) nospam (DOT) southeastmilk.org> wrote

Quote:

I have a dataset that I want to write to XML

The dataset has two data tables with a parent child relationship 1:1

What I want to do is when I use myDataset.WriteXML(somefile);

Create a document that places the child within the parent node for example

TestedBatch
BatchNumber 1234 /
TestDate 1/1/2006 /
TestDetails> <--- this is the child table
test1 "5.0"
test2 "3.3"
/TestDetails
/TestedBatch

I'm not getting this when I write to XML, I get all of the parent table
entries, and then all of the child table entries.

Any thoughts?

Thanks,
Jusitn





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.