|
In cutting and pasting from my Python command line, I missed a line. Task 4 should look like:
>>> #Task 4
...
>>> divs = doc.getElementsByTagNameNS(
... u'http://www.w3.org/1999/xhtml', u'div'
... )
>>> divs[0].setAttributeNS(
... u'http://www.w3.org/1999/xhtml', u'global', u'spam'
... )
>>>
--Uche
http://uche.ogbuji.net
|