Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to parse XML file

Status
Not open for further replies.

malaygal

IS-IT--Management
Feb 22, 2006
192
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top