I'm trying to get a value from a xml string but it's throwing attrib can't be retrieved from None type.
Consider below XML
<summary-report>
<static-analysis>
<modules>
<module sev0issue="0" sev1issue="14">
</module>
</modules>
</static-analysis>
<dynamic-analysis>
<modules>
<module sev0issue="0" sev1issue="14">
</module>
</modules>
</dynamic-analysis>
</summary-report>
How to parse and get the sev0issue under static analysis tag?
I'm trying below code to get the value.
value= ET.fromstring(XmlData)
issue= value.find('.//summary-report/static-analysis/modules/module')
issueCount= issue.get('sev0issue')
When I try this I'm getting error like there is no attrib sev0issue for Nonetype