I have searched the web and this forum and found many articles but I am not understanding how to get child data in an XML structure.
I've read to use the DataViewManager but I'm not understanding it.
Here is an example of the XML document.
<?xml version="1.0" encoding="utf-8" ?>
<myXML>
<Item name="xyz">
<Benefits>
<Benefit>Looks Good</Benefit>
<Benefit>Priced Right</Benefit>
<Benefit>Works Well</Benefit>
</Benefits>
</Item>
<Item name="abc">
<Benefits>
<Benefit>Looks Good</Benefit>
<Benefit>Light Weight</Benefit>
<Benefit>Cutting Edge</Benefit>
</Benefits>
</Item>
</myXML>
From the example above, how do I find all the items that has a benefit of Cutting Edge?
What do I do next? My eventual goal is to bind the list of Items to a list box or data grid.
Thanks,
Gabe
I've read to use the DataViewManager but I'm not understanding it.
Here is an example of the XML document.
<?xml version="1.0" encoding="utf-8" ?>
<myXML>
<Item name="xyz">
<Benefits>
<Benefit>Looks Good</Benefit>
<Benefit>Priced Right</Benefit>
<Benefit>Works Well</Benefit>
</Benefits>
</Item>
<Item name="abc">
<Benefits>
<Benefit>Looks Good</Benefit>
<Benefit>Light Weight</Benefit>
<Benefit>Cutting Edge</Benefit>
</Benefits>
</Item>
</myXML>
From the example above, how do I find all the items that has a benefit of Cutting Edge?
Code:
dim g_XMLDocument as string = "c:\myDoc.xml"
Dim m_DS As DataSet = New DataSet
m_DS.ReadXml(g_XMLDocument)
Thanks,
Gabe