I have the following xml record within a larger xml file:
<Employee>
<id>999</id>
<fname>Tim</fname>
<lname>Boskin</lname>
</Employee>
I am attempting to get the fname and lname attributes via lxml and xpath in python. The following statement is not returning anything:
fname = root.xpath('.//Employee[@id="999"]/fname')
Every example I have found and attempted has yielded no results, what would be the proper syntax?