Is it true that XML in this form is **unusable** for usage by
DataSet.ReadXml([file], XmlReadMode.Fragment) and
[DataRow][DataColumn].GetChildRows()?

Because I found that GetChildsRows() does not work. I am talking about a
DataSet which has a xsd schema.
Im suspecting currently, that GetChildRows -only- works if there is a
primarykey-foreign key relation ship.

I DO want to avoid to use the XmlDocument object to read all data! Is there
an easy fix for this?

The child(s) here is <option>

<entry>
<value>blah</value>
<entries>
<option>1</option></option>2</option>
</entries>
</entry>

Re: DataSet can't determine 'childs' by jeff

jeff
Fri Nov 12 14:45:17 CST 2004

Define "does not work"

"Egbert Nierop (MVP for IIS)" <egbert_nierop@nospam.invalid> wrote in
message news:uYisSfIyEHA.3908@TK2MSFTNGP12.phx.gbl...
> Is it true that XML in this form is **unusable** for usage by
> DataSet.ReadXml([file], XmlReadMode.Fragment) and
> [DataRow][DataColumn].GetChildRows()?
>
> Because I found that GetChildsRows() does not work. I am talking about a
> DataSet which has a xsd schema.
> Im suspecting currently, that GetChildRows -only- works if there is a
> primarykey-foreign key relation ship.
>
> I DO want to avoid to use the XmlDocument object to read all data! Is
there
> an easy fix for this?
>
> The child(s) here is <option>
>
> <entry>
> <value>blah</value>
> <entries>
> <option>1</option></option>2</option>
> </entries>
> </entry>
>



Re: DataSet can't determine 'childs' by Ben

Ben
Fri Nov 12 16:41:46 CST 2004

I believe you will still have to define a relationship in the dataset.

--
Ben Strackany
www.developmentnow.com

<a href="http://www.developmentnow.com">dn</a>


"Egbert Nierop (MVP for IIS)" <egbert_nierop@nospam.invalid> wrote in
message news:uYisSfIyEHA.3908@TK2MSFTNGP12.phx.gbl...
> Is it true that XML in this form is **unusable** for usage by
> DataSet.ReadXml([file], XmlReadMode.Fragment) and
> [DataRow][DataColumn].GetChildRows()?
>
> Because I found that GetChildsRows() does not work. I am talking about a
> DataSet which has a xsd schema.
> Im suspecting currently, that GetChildRows -only- works if there is a
> primarykey-foreign key relation ship.
>
> I DO want to avoid to use the XmlDocument object to read all data! Is
there
> an easy fix for this?
>
> The child(s) here is <option>
>
> <entry>
> <value>blah</value>
> <entries>
> <option>1</option></option>2</option>
> </entries>
> </entry>
>



Re: DataSet can't determine 'childs' by Egbert

Egbert
Mon Nov 15 04:07:23 CST 2004

<jeff@removeemergencyreporting.com> wrote in message
news:%23kJrOiPyEHA.1452@TK2MSFTNGP11.phx.gbl...
> Define "does not work"

Does not work = Jeff does not read ...

> "Egbert Nierop (MVP for IIS)" <egbert_nierop@nospam.invalid> wrote in
> message news:uYisSfIyEHA.3908@TK2MSFTNGP12.phx.gbl...


Re: DataSet can't determine 'childs' by Egbert

Egbert
Mon Nov 15 04:08:39 CST 2004

"Ben Strackany" <infoNOSPAM@developmentnow.nospam.com> wrote in message
news:%234VK$iQyEHA.4004@tk2msftngp13.phx.gbl...
>I believe you will still have to define a relationship in the dataset.

I have an other dataset, which has a normal schema (without relationships)
which works. Only the schema created from the XML showed in OP does not seem
to have effect on subchilds being related to a parent element.

> --
> Ben Strackany
> www.developmentnow.com
>
> <a href="http://www.developmentnow.com">dn</a>
>
>
> "Egbert Nierop (MVP for IIS)" <egbert_nierop@nospam.invalid> wrote in
> message news:uYisSfIyEHA.3908@TK2MSFTNGP12.phx.gbl...
>> Is it true that XML in this form is **unusable** for usage by
>> DataSet.ReadXml([file], XmlReadMode.Fragment) and
>> [DataRow][DataColumn].GetChildRows()?
>>
>> Because I found that GetChildsRows() does not work. I am talking about a
>> DataSet which has a xsd schema.
>> Im suspecting currently, that GetChildRows -only- works if there is a
>> primarykey-foreign key relation ship.
>>
>> I DO want to avoid to use the XmlDocument object to read all data! Is
> there
>> an easy fix for this?
>>
>> The child(s) here is <option>
>>
>> <entry>
>> <value>blah</value>
>> <entries>
>> <option>1</option></option>2</option>
>> </entries>
>> </entry>
>>
>
>