Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: How to get element by name

Python: How to get element by name
{filelink=16796}

from xml.dom import minidom
xmldoc = minidom.parse('c:/test.xml')
email = xmldoc.getElementsByTagName('addr')[0].firstChild.data
print email

Users who found this page were searching for:

  • python getelementsbytype
  • python getelements
  • python get class element by name
  • python get class elements

No comments yet.

Leave a Comment