I have an XML file that indicates role specific authorization:
I am coding in
Java to parse this XML file.
With the "role" and "action" provided, I wish my Java method return a boolean, which is either a "Y" or a "N".
I have managed to drill down the hierarchy. For example,
But, I do not know how to handle XML elements with a number of attributes.
I have many "entries" under the "userrole". How do I get the boolean value of the "access" attribute for the actionType provided?