I am a newbie with Python and I'd like to remove below element from a xml file using python .
<action name="error_mail">...........</action>
Input File :
<action name="error_mail">
<email xmlns="uri:oozie:email-action:0.1">
<to>abc@xyz.com</to>
<cc>abc@xyz.com</cc>
<subject>Batch Failed</subject>
<body>Batch Failed at ${node}</body>
</email>
<ok to="killjob"/>
<error to="killjob"/>
</action>
<action name="succeed_mail">
<email xmlns="uri:oozie:email-action:0.1">
<to>abc@xyz.com</to>
<cc>abc@xyz.com</cc>
<subject>Batch Succeed</subject>
<body>Batch completed</body>
</email>
<ok to="end"/>
<error to="end"/>
</action>