Strange problem with xml.dom.minidom Text object (Python 2.3)

"Martin v. Löwis" martin at v.loewis.de
Thu Sep 4 15:49:45 EDT 2003


Hans Nowak wrote:

> Anybody knows what's going on here?  I didn't see this as a bug in the 
> BugTracker.  Am I doing something wrong?

Yes. Your are not supposed to create Text objects (or any other DOM 
nodes) by calling the implementation class. Instead, you should use the 
DOM interfaces to obtain new nodes. In the specific case, call 
.createTextNode on the Document object. See the documentation for details.

Regards,
Martin





More information about the Python-list mailing list