Replacing _xmlplus.dom.minidom with xml.dom.minidom
Robert Rawlins - Think Blue
robert.rawlins at thinkbluemedia.co.uk
Fri Aug 3 09:56:43 EDT 2007
Just as a heads up, minidom is pretty inefficient and difficult to work with
too.
On someone else's advice I switched over to ElementTree and have been really
pleased with the results, its much simpler to work with and more efficient
too.
Rob
-----Original Message-----
From: python-list-bounces+robert.rawlins=thinkbluemedia.co.uk at python.org
[mailto:python-list-bounces+robert.rawlins=thinkbluemedia.co.uk at python.org]
On Behalf Of aine_canby at yahoo.com
Sent: 03 August 2007 14:39
To: python-list at python.org
Subject: Replacing _xmlplus.dom.minidom with xml.dom.minidom
Hi,
I'm working with a number of scripts which were written years ago for
my company for Python 2.2, and I'd like to update for Python 2.5. I
have written a script to add # -*- coding: cp1252 -*- to the beginning
of all my scripts, and that has fixed the encoding issues.
Another issue was the use of -
from _xmlplus.dom import minidom
http://sourceforge.net/project/showfiles.php?group_id=6473
I couldn't get a version of this module for 2.5, so I changed the
above to -
from xml.dom import minidom
The scripts I work with are all working now correctly for 2.5. But I
haven't been able to test the whole system as not all of it concerns
me. Anyway, my colleges are interested in updating also if it will be
reasonably hassle free.
So my main concern now is the use of _xmlplus.dom.minidom. Why was it
used and what differences should I look out for with regard to
xml.dom.mididom
Thanks very much for your help,
Barry.
--
http://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list