I have a situation in which I have a strongly typed dataset based on the
schema of a xml document. This works great, and OMG I love strongly typed
datasets... ;o)
However, The situation I have has a nested complex type. For example:
<PAGE>
<PAGENUMBER>1</PAGENUMBER>
<PAGETITLE>This is the title</PAGETITLE>
<IMAGES>
<IMAGE NAME="Image1" FILE="image1.jpg" />
<IMAGE NAME="Image2" FILE="image2.jpg" />
<IMAGE NAME="Image3" FILE="image3.jpg" />
</IMAGES>
</PAGE>
(or something to that effect, you get the idea)
Because the <Images> is a Complex type, I can not access it's members
through the dataset. In other words, I can get the page title by saying
"myDataset.Page(index).PAGETITLE", but I can't get a image by saying
something like: "myDataset.Page(index).Images(index2).File"
I know you can manually build relationships in the dataset as long as there
are unique keys in both the <IMAGE> and <PAGE> elements that can be joined
on, (which is what I ended up doing) but it seems like there should be an
easier way.
Thanks a bunch for any advice!
-D