Python ET parse XML insensitive case

I want to parse a XML file using ET library. Everything works fine, but now, I want to do the same ignoring uppercase or lowercase.

For example: I have this line in my code:

root2.findall(".EQUIPMENT/SIGNAL[@NAME='" + signalName + "']/VALUE_FORMAT")

where signalName is ‘S_Pitch’ in my XML file, but I have ‘S_PITCH’ in my python variable.

Any idea?

Source: xml

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.