I have a bit of a tough nut to crack. It has been so long since I've used LXML that I need some help to get started. I have an XML file that has a list of categories and proxy elements. Please see the snippet below:
<categories>
<category name="Light">
<proxy>fan</proxy>
</category>
<category name="UI">
<proxy>doorbell</proxy>
</category>
</categories>
What I would like to do is search through all the proxy elements to find "doorbell". If found, I would like to know the name of the parent element it came from. So in the above example, doorbell would be found under the parent category elementnamed "UI". In the end, I just need the value of the "name" attribute for the parent element in which the proxy fell under.
Any gurus out there want to help me tackle this?