Okay. I know this is duplicate.
However, I am a decent programmer, I have been trying this for 2 hours and got nothing!!
The top several lines of the xml file looks like the following.
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">2</int>
<lst name="params">
<str name="d">100</str>
<str name="sort">score asc</str>
<str name="fl">
.
.
.
Here, what I want to get is just the number between <int name="QTime"> and </int>, which is 2 in this case.
How can I do this?
I've used ElementTree, and the documentation is awful.