K
KJ
I have an easy xml document, for example:
<pics>
<pic name="foo"/>
<pic name="bar"/>
</pics>
I call ReadXML on my DataSet, and no problems (2 rows, one for each pic
element), one column for the name attribute.
However, if the Xml looks like this:
<pics attr="why">
<pic name="foo"/>
<pic name="bar"/>
</pics>
ReadXml only creates a 1 row table with the pics attribute "attr" as
its only column (ignoring the pic children).
So really, I have 2 questions:
Is it possible to control how ReadXml infers rows from Xml at runtime?
How to do so?
-TIA
<pics>
<pic name="foo"/>
<pic name="bar"/>
</pics>
I call ReadXML on my DataSet, and no problems (2 rows, one for each pic
element), one column for the name attribute.
However, if the Xml looks like this:
<pics attr="why">
<pic name="foo"/>
<pic name="bar"/>
</pics>
ReadXml only creates a 1 row table with the pics attribute "attr" as
its only column (ignoring the pic children).
So really, I have 2 questions:
Is it possible to control how ReadXml infers rows from Xml at runtime?
How to do so?
-TIA