Parsing XML in Python

I need one help for parsing XML using Python.

I have blow XML file, I need
1. How to check whether <profile> tag having elements or not in the Python?
2. If it is having, how to get the data using Python?


<test>
<sample>Parsing XML</sample>
<case>
<dept>Marketing</dept>
<profile>
<empid>11</empid>
<ename>Sujana</ename>
<salary>25000</salary>
</profile>
</case>
<case>
<dept>Finance</dept>
<profile>
<empid>10</empid>
<ename>Shiva</ename>
<salary>80000</salary>
</profile>
</case>
<case>
<dept>HR</dept>
<profile>
</profile>
</case>
</test>