Say i have these XML tag:
<?xml version="1.0" encoding="utf-8" ?>
<AutoMobile>
<KeyPhrases list="BMW">
<Question value="Is this type I or type II?">
<Option value="Type I" id="1">
<Question value="Is this controlled or uncontrolled?">
<Option value="Controlled" id="1">
<Diagnosis_List>
<Diagnosis icd9=""> type I - controlled</Diagnosis>
</Diagnosis_List>
</Option>
<Option value="Uncontrolled" id="2">
<Diagnosis_List>
<Diagnosis icd9="">type I - uncontrolled</Diagnosis>
</Diagnosis_List>
</Option>
</Question>
</Option>
<Option value="Type II" id="2">
<Question value="Is this controlled or uncontrolled?">
<Option value="Controlled" id="1">
<Diagnosis_List>
<Diagnosis icd9="">diabetes type II - controlled</Diagnosis>
</Diagnosis_List>
</Option>
<Option value="Uncontrolled" id="2">
<Diagnosis_List>
<Diagnosis icd9="">type II - uncontrolled</Diagnosis>
</Diagnosis_List>
</Option>
</Question>
</Option>
</Question>
</AutoMobile>
And I am using this my code to extract the "Question Value" (highlighted in green in the xml above)
Public Sub New(ByRef data As Xml.XmlNodeList)
InitializeComponent()
Me.xData = data
If 1 = 1 Then
End If
Me.txtQuestion.Text = xData.Item(0).Attributes.GetNamedItem("value").Value.ToString
End Sub
How can I extract the "Option Value" highlighted in red in the xml?
Thanks in advance for any help