How to get the child of child using Python's ElementTree
问题 I'm building a Python file that communicates with a PLC. When compiling, the PLC creates a XML file that delivers important information about the program. The XML looks more less like this: <visu> <time>12:34</time> <name>my_visu</name> <language>english</language> <vars> <var name="input1">2</var> <var name="input2">45.6</var> <var name="input3">"hello"</var> </vars> </visu> The important part is found under child "vars". Using Python I want to make a file that when sending argument "input2"