Sign In/My Account | View Cart  
advertisement

Article:
 XML Namespaces Support in Python Tools, Part 1
Subject: Missing line in minidom mutation code
Date: 2004-05-10 07:00:54
From: Uche Ogbuji

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


No Previous Message Previous Message   Next Message No Next Message


Sponsored By: