G
Guest
Can someone tell me how to access the "nested child" data of a specific
parent from within a dataset? I read an XML file into a dataset with its
schema and want to access the child nested data. The one I access is
identified by a unique value within the parent data. In the below snippet,
I'll loop through the LanguageData64 entries and find the Code (e.g., 00).
From there are want to access the PartNumbers and return a reference to that
PartNumbers table to access its entries.
A snippet of the XML file is here.
<Languages64Bit>
<LanguageData64>
<Abbr>B2</Abbr>
<Code>B2</Code>
<MUI>false</MUI>
<Language>Global</Language>
<PartNumbers>
<PartNumber1>35-01</PartNumber1>
<PartNumber2>35-02</PartNumber2>
</PartNumbers>
<Description>a description</Description>
</LanguageData64>
<LanguageData64>
<Abbr>US</Abbr>
<Code>00</Code>
<MUI>false</MUI>
<Language>English</Language>
<PartNumbers>
<PartNumber1>33-01</PartNumber1>
<PartNumber2>33-02</PartNumber2>
</PartNumbers>
<Description>another description</Description>
</LanguageData64>
</Languages64Bit>
parent from within a dataset? I read an XML file into a dataset with its
schema and want to access the child nested data. The one I access is
identified by a unique value within the parent data. In the below snippet,
I'll loop through the LanguageData64 entries and find the Code (e.g., 00).
From there are want to access the PartNumbers and return a reference to that
PartNumbers table to access its entries.
A snippet of the XML file is here.
<Languages64Bit>
<LanguageData64>
<Abbr>B2</Abbr>
<Code>B2</Code>
<MUI>false</MUI>
<Language>Global</Language>
<PartNumbers>
<PartNumber1>35-01</PartNumber1>
<PartNumber2>35-02</PartNumber2>
</PartNumbers>
<Description>a description</Description>
</LanguageData64>
<LanguageData64>
<Abbr>US</Abbr>
<Code>00</Code>
<MUI>false</MUI>
<Language>English</Language>
<PartNumbers>
<PartNumber1>33-01</PartNumber1>
<PartNumber2>33-02</PartNumber2>
</PartNumbers>
<Description>another description</Description>
</LanguageData64>
</Languages64Bit>