Package: python-xml Version: 0.8.4-5 Severity: minor Tags: patch
note: I found patch for this via google and is dated 2002, which says something about how many people are actually looking at the examples. here is the patch: --- /usr/share/doc/python-xml/examples/demo/dom/generate_xml1.py 2006-06-14 18:35:04.000000000 +0200 +++ generate_xml1.py 2006-11-19 16:20:10.964358280 +0100 @@ -14,16 +14,16 @@ #Create a document using document element namespace URI, doc element #name and doctype. This automatically creates a document element #which is the single element child of the document - doc = implementation.createHTMLDocument('', 'mydoc', dt) + doc = implementation.createDocument(None, 'mydoc', dt) #Get the document element doc_elem = doc.documentElement #Create an element: the Document instanmce acts as a factory - new_elem = doc.createElementNS('', 'spam') + new_elem = doc.createElementNS(None, 'spam') #Create an attribute on the new element - new_elem.setAttributeNS('', 'eggs', 'sunnysideup') + new_elem.setAttributeNS(None, 'eggs', 'sunnysideup') #Create a text node new_text = doc.createTextNode('some text here...') @@ -35,5 +35,5 @@ doc_elem.appendChild(new_elem) #Print out the resulting document - import xml.doc.ext - xml.doc.ext.Print(doc) + from xml.dom import ext + ext.Print(doc) -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18.2 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages python-xml depends on: ii python 2.4.3-11 An interactive high-level object-o ii python-central 0.5.10 register and build utility for Pyt python-xml recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]