I would like to get all the attributes of one Element (without knowing the names of the attributes). Is there any function for that? Thanks
>>> docu = '<a href="http" alt=":)"></a>'
>>> dom = xml.dom.minidom.parseString(docu)
>>> a = dom.getElementsByTagName("a")[0]
>>> a.attributes.items()
[(u'alt', u':)'), (u'href', u'http')]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With