I have a XML of the next type:
<OUTPUT>
<HEADER>
</HEADER>
<REGISTER>
<RESULT>0</RESULT>
<KEY1>CAR</KEY1>
<KEY2>RED</KEY2>
<KEY3>2013</KEY3>
<ATTRIBUTE1>2000</ATTRIBUTE1>
<ATTRIBUTE2>100000</ATTRIBUTE2>
</REGISTER>
<REGISTER>
<RESULT>0</RESULT>
<KEY1>TRUCK</KEY1>
<KEY2>BLUE</KEY2>
<KEY3>2014</KEY3>
<ATTRIBUTE1>3000</ATTRIBUTE1>
<ATTRIBUTE2>400000</ATTRIBUTE2>
</REGISTER>
<OUTPUT>
How can I search the value of the ATTRIBUTE1 if the KEY1,KEY2, KEY3 have some values without looping in python? (some kind of lambda expression of c#)
I know thanks to @CommuSoft that I can use Xpath queries with libxml2. But when I try to install it using pip install libxml2-python
I find the error
Could not find any downloads that satisfy the requirement libxml2-python
Also I forgot to mention I'm using python 2.7 on anaconda and windows.