[XML-SIG] copy node to new dom

Mike Hostetler thehaas@matrix.binary.net
Thu, 25 Oct 2001 13:44:53 -0500


On Thu, Oct 25, 2001 at 02:16:13PM -0400, Fred L. Drake, Jr. wrote:
> 
> Mike Hostetler writes:
>  > However, minidom doesn't have an 'importNode" method.  I've found minidom
>  > is not up to the task when doing advanced things (and taking part of a
>  > DOM tree and putting it into another DOM tree *is* advanced).  I hate to
>  > sound elitest, but change to PyXML -- it will make things easier.
> 
>   I've filed a bug against minidom for this omission:
> 
> http://sourceforge.net/tracker/index.php?func=detail&aid=474986&group_id=5470&atid=105470
> 

I remember thinking about that when I had to figure out the importNode
stuff . . . and then I looked at the DOM spec.

'minidom' is only DOM Level 1 compatible with some Level 2 in it (for
some namespace stuff, according to the python documentation).  'importNode'
is part of the Level 2 spec.  I'm not sure that 'importNode' belongs to
'minidom'.  But, hey, if you guys want to put it in . . . . =)

URLs for reference:
=======================
Explanation of minidom and the DOM standard:
	http://www.python.org/doc/current/lib/minidom-and-dom.html

DOM Level 1 spec:
	http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html

DOM Level 2 spec:
	http://www.w3.org/TR/DOM-Level-2-Core/core.html


Mike