Xml parsing using xml.dom



My xmls aren't like others. Here is an example of my xml:



"<msg t='sys'><body action='verChk' r='0'><ver v='153' /></body></msg>"


what I want is to get the value of action. How do I do that using xml.dom in python...


Tiada ulasan:

Catat Ulasan