[XML-SIG] minidom changes & additional modules

Fred L. Drake, Jr. fdrake@acm.org
Fri, 15 Feb 2002 12:31:32 -0500

Uche Ogbuji writes:
 > No problem.  I know that though it doesn't affect performance in cDomlette, 

That depends on how deep the tree is, when your perform the join
operations, and how you perform joins (urlparse.urljoin() is just
plain slow).

Even if your joins are incredibly fast, if you end up with different
URIs at each node, there's a memory penalty, but reasonable people
won't write their XML that way.

Perhaps the urlparse module should be re-written in C, though.  But
not today.  I think Skip did part of this some time ago as his urlop

 > the way we have it would re-introduce the sorts of htings you're trying to 
 > streamline in minidom.  Therefore, your suggestion sounds reasonable.

Another approach would be to have a utility function do it all, and
not change the DOM at all.  This should allow a single utility to work
for all DOM implementations.


Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation