PC Review Forums Newsgroups Microsoft DotNet Microsoft ADO .NET ADO.NET's WriteXML has BUG!!

Reply

ADO.NET's WriteXML has BUG!!

 
Thread Tools Rate Thread
Old 05-01-2007, 04:49 AM   #1
ABC
Guest
 
Posts: n/a
Default ADO.NET's WriteXML has BUG!!


I have a dataset which contains two tables, one is master and another is
child table with a relation join between tables.

When I use DataSet.WriteXML, it shows as:

<aDataSet>
<MasterTable ID="1" ............... />
<ChildTable ID="1" .................. />
...
</aDataSet>

It is not my expected (which used in DataSet.WriteXML on .NET 1.1) as:

<aDataSet>
<MasterTable ID="1" ............... >
<ChildTable ID="1" .................. />
...
</MasterTable>
</aDataSet>

I think it is one BUG!!


  Reply With Quote
Old 05-01-2007, 05:22 AM   #2
Cor Ligthert [MVP]
Guest
 
Posts: n/a
Default Re: ADO.NET's WriteXML has BUG!!

ABC,

This newsgroup is not for reporting Bugs

http://connect.microsoft.com/Main/c...?ContentID=2220

By the way in my opinion is this no Bug in the Microsoft WriteXML but in
your program, there is a property to set it in the way that is wanted.

However I don't like those persons who want to shout on Internet that
Microsoft programmers have made bugs while they did not, therefore have a
search yourself for that.

Cor


  Reply With Quote
Old 05-01-2007, 08:51 AM   #3
Miha Markic [MVP C#]
Guest
 
Posts: n/a
Default Re: ADO.NET's WriteXML has BUG!!

Hi there,

I don't think this is a bug.
DataSet isn't a hierarchical structure - it is a container for tables that
might be referenced.
What if child table contains a reference to master table? How would xml then
look like?

--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

"ABC" <abc@abc.com> wrote in message
news:%23v%23%23lTIMHHA.4888@TK2MSFTNGP02.phx.gbl...
>I have a dataset which contains two tables, one is master and another is
>child table with a relation join between tables.
>
> When I use DataSet.WriteXML, it shows as:
>
> <aDataSet>
> <MasterTable ID="1" ............... />
> <ChildTable ID="1" .................. />
> ...
> </aDataSet>
>
> It is not my expected (which used in DataSet.WriteXML on .NET 1.1) as:
>
> <aDataSet>
> <MasterTable ID="1" ............... >
> <ChildTable ID="1" .................. />
> ...
> </MasterTable>
> </aDataSet>
>
> I think it is one BUG!!
>


  Reply With Quote
Old 05-01-2007, 09:28 AM   #4
ABC
Guest
 
Posts: n/a
Default Re: ADO.NET's WriteXML has BUG!!

If use .NET 1.1, the writeXml outcome like-as tree structure to display tag
and values.
But, if use .NET 2.0, the outcome like-as two tables list.




"Miha Markic [MVP C#]" <miha at rthand com> wrote in message
news:8990687C-C1B6-4A9F-8F67-9B211155CFB4@microsoft.com...
> Hi there,
>
> I don't think this is a bug.
> DataSet isn't a hierarchical structure - it is a container for tables that
> might be referenced.
> What if child table contains a reference to master table? How would xml
> then look like?
>
> --
> Miha Markic [MVP C#, INETA Country Leader for Slovenia]
> RightHand .NET consulting & development www.rthand.com
> Blog: http://cs.rthand.com/blogs/blog_with_righthand/
>
> "ABC" <abc@abc.com> wrote in message
> news:%23v%23%23lTIMHHA.4888@TK2MSFTNGP02.phx.gbl...
>>I have a dataset which contains two tables, one is master and another is
>>child table with a relation join between tables.
>>
>> When I use DataSet.WriteXML, it shows as:
>>
>> <aDataSet>
>> <MasterTable ID="1" ............... />
>> <ChildTable ID="1" .................. />
>> ...
>> </aDataSet>
>>
>> It is not my expected (which used in DataSet.WriteXML on .NET 1.1) as:
>>
>> <aDataSet>
>> <MasterTable ID="1" ............... >
>> <ChildTable ID="1" .................. />
>> ...
>> </MasterTable>
>> </aDataSet>
>>
>> I think it is one BUG!!
>>

>



  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

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