XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
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:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938