I have an xml file that has the following entries:
<Permission>
<FormName>MainMenu</FormName>
<ControlName>Submit</ControlName>
<ControlProperty>Enabled</ControlProperty>
<Supervisor xml:space="preserve">TRUE</Supervisor>
<EXAMINER xml:space="preserve"> </EXAMINER>
<CLERK xml:space="preserve"> </CLERK>
</Permission>
<Permission>
<FormName>MainMenu</FormName>
<ControlName>Review</ControlName>
<ControlProperty>Enabled</ControlProperty>
<Supervisor xml:space="preserve">TRUE</Supervisor>
<EXAMINER xml:space="preserve">TRUE</EXAMINER>
<CLERK xml:space="preserve">TRUE</CLERK>
</Permission>
How can I parse the XML and get the Text for EXAMINER, <ControlName> = Review , <ControlProperty> = Enabled
The XML represents button on forms and Supervisor, Examiner and Clerk are roles.
<Permission>
<FormName>MainMenu</FormName>
<ControlName>Submit</ControlName>
<ControlProperty>Enabled</ControlProperty>
<Supervisor xml:space="preserve">TRUE</Supervisor>
<EXAMINER xml:space="preserve"> </EXAMINER>
<CLERK xml:space="preserve"> </CLERK>
</Permission>
<Permission>
<FormName>MainMenu</FormName>
<ControlName>Review</ControlName>
<ControlProperty>Enabled</ControlProperty>
<Supervisor xml:space="preserve">TRUE</Supervisor>
<EXAMINER xml:space="preserve">TRUE</EXAMINER>
<CLERK xml:space="preserve">TRUE</CLERK>
</Permission>
How can I parse the XML and get the Text for EXAMINER, <ControlName> = Review , <ControlProperty> = Enabled
The XML represents button on forms and Supervisor, Examiner and Clerk are roles.