I am having the following xml,
<?xml version="1.0" encoding="UTF-8"?>
<power-domains>
<power-domain name="Security" cache-type="default">
<authentication>
<login-module code="test.module" flag="required" module="com.test.nms">
<module-option name="principal" value="admin"/>
<module-option name="userName" value="admin"/>
<module-option name="password" value="YSFSDwe"/>
</login-module>
</authentication>
</power-domain>
</power-domains>
By using shell script, I need parse the above content and get value of userName and password?
Please guide me how to do?